1
0
Fork 0
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:
Tim Neutkens 2018-01-31 08:33:29 +01:00
parent ff3aa3ad01
commit 8a4a9a10c2

View file

@ -70,7 +70,7 @@ function externalsConfig (dir, isServer) {
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}`)
}