1
0
Fork 0
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:
Tim Neutkens 2018-02-01 10:30:52 +01:00 committed by Arunoda Susiripala
parent 944668c6c4
commit 09500c25ff

View file

@ -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}`)
}