Commit 863d4d3b authored by Arunoda Susiripala's avatar Arunoda Susiripala Committed by Tim Neutkens

Make sure externals logic works on Windows. (#3677)

parent b8f189f2
......@@ -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}`)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment