Commit 09500c25 authored by Tim Neutkens's avatar Tim Neutkens Committed by Arunoda Susiripala

Don’t exclude webpack (#3646)

parent 944668c6
...@@ -70,7 +70,8 @@ function externalsConfig (dir, isServer) { ...@@ -70,7 +70,8 @@ function externalsConfig (dir, isServer) {
return callback() return callback()
} }
if (res.match(/node_modules\/.*\.js/)) { // 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/)) {
return callback(null, `commonjs ${request}`) 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