From 863d4d3b4fd8c248f5e026c2850c2799659b3928 Mon Sep 17 00:00:00 2001 From: Arunoda Susiripala Date: Mon, 5 Feb 2018 13:40:55 +0530 Subject: [PATCH] Make sure externals logic works on Windows. (#3677) --- server/build/webpack.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/build/webpack.js b/server/build/webpack.js index 38241627..3084a37f 100644 --- a/server/build/webpack.js +++ b/server/build/webpack.js @@ -71,7 +71,7 @@ function externalsConfig (dir, isServer) { } // Webpack itself has to be compiled because it doesn't always use module relative paths - if (res.match(/node_modules\/.*\.js/) && !res.match(/node_modules\/webpack/)) { + if (res.match(/node_modules[/\\].*\.js/) && !res.match(/node_modules[/\\]webpack/)) { return callback(null, `commonjs ${request}`) }