diff --git a/examples/async/server.js b/examples/async/server.js index 20329ce3fa..b1b9f6a814 100644 --- a/examples/async/server.js +++ b/examples/async/server.js @@ -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); diff --git a/examples/counter/server.js b/examples/counter/server.js index 20329ce3fa..b1b9f6a814 100644 --- a/examples/counter/server.js +++ b/examples/counter/server.js @@ -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); diff --git a/examples/real-world/server.js b/examples/real-world/server.js index 68be31dfc0..eacca6136d 100644 --- a/examples/real-world/server.js +++ b/examples/real-world/server.js @@ -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); diff --git a/examples/shopping-cart/server.js b/examples/shopping-cart/server.js index 20329ce3fa..b1b9f6a814 100644 --- a/examples/shopping-cart/server.js +++ b/examples/shopping-cart/server.js @@ -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); diff --git a/examples/todomvc/server.js b/examples/todomvc/server.js index 20329ce3fa..b1b9f6a814 100644 --- a/examples/todomvc/server.js +++ b/examples/todomvc/server.js @@ -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); diff --git a/examples/todos-with-undo/server.js b/examples/todos-with-undo/server.js index 20329ce3fa..b1b9f6a814 100644 --- a/examples/todos-with-undo/server.js +++ b/examples/todos-with-undo/server.js @@ -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);