Skip to content

Commit

Permalink
Merge pull request reduxjs#979 from hedgerh/rm-unused-deps
Browse files Browse the repository at this point in the history
Wrap require(express) in express constructor in examples/server.js.
  • Loading branch information
gaearon committed Oct 29, 2015
2 parents dcb4326 + 31047c7 commit 4277b09
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/async/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var webpackDevMiddleware = require('webpack-dev-middleware');
var webpackHotMiddleware = require('webpack-hot-middleware');
var config = require('./webpack.config');

var app = new require('express')();
var app = new (require('express'))();
var port = 3000;

var compiler = webpack(config);
Expand Down
2 changes: 1 addition & 1 deletion examples/counter/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var webpackDevMiddleware = require('webpack-dev-middleware');
var webpackHotMiddleware = require('webpack-hot-middleware');
var config = require('./webpack.config');

var app = new require('express')();
var app = new (require('express'))();
var port = 3000;

var compiler = webpack(config);
Expand Down
2 changes: 1 addition & 1 deletion examples/real-world/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var webpackDevMiddleware = require('webpack-dev-middleware');
var webpackHotMiddleware = require('webpack-hot-middleware');
var config = require('./webpack.config');

var app = new require('express')();
var app = new (require('express'))();
var port = 3000;

var compiler = webpack(config);
Expand Down
2 changes: 1 addition & 1 deletion examples/shopping-cart/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var webpackDevMiddleware = require('webpack-dev-middleware');
var webpackHotMiddleware = require('webpack-hot-middleware');
var config = require('./webpack.config');

var app = new require('express')();
var app = new (require('express'))();
var port = 3000;

var compiler = webpack(config);
Expand Down
2 changes: 1 addition & 1 deletion examples/todomvc/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var webpackDevMiddleware = require('webpack-dev-middleware');
var webpackHotMiddleware = require('webpack-hot-middleware');
var config = require('./webpack.config');

var app = new require('express')();
var app = new (require('express'))();
var port = 3000;

var compiler = webpack(config);
Expand Down
2 changes: 1 addition & 1 deletion examples/todos-with-undo/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var webpackDevMiddleware = require('webpack-dev-middleware');
var webpackHotMiddleware = require('webpack-hot-middleware');
var config = require('./webpack.config');

var app = new require('express')();
var app = new (require('express'))();
var port = 3000;

var compiler = webpack(config);
Expand Down

0 comments on commit 4277b09

Please sign in to comment.