mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Don’t exclude webpack (#3646)
This commit is contained in:
parent
944668c6c4
commit
09500c25ff
|
@ -70,7 +70,8 @@ function externalsConfig (dir, isServer) {
|
|||
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}`)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue