Skip to content

Commit

Permalink
Make sure externals logic works on Windows. (#3677)
Browse files Browse the repository at this point in the history
  • Loading branch information
arunoda authored and timneutkens committed Feb 5, 2018
1 parent b8f189f commit 863d4d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/build/webpack.js
Expand Up @@ -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}`)
}

Expand Down

0 comments on commit 863d4d3

Please sign in to comment.