mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Match .js instead of not css
This commit is contained in:
parent
ff3aa3ad01
commit
8a4a9a10c2
|
@ -70,7 +70,7 @@ function externalsConfig (dir, isServer) {
|
||||||
return callback()
|
return callback()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (res.match(/node_modules/) && !res.match(/.(css|sass|scss|less|svg)/)) {
|
if (res.match(/node_modules\/.*\.js/)) {
|
||||||
return callback(null, `commonjs ${request}`)
|
return callback(null, `commonjs ${request}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue