diff --git a/server/build/webpack.js b/server/build/webpack.js index 3052e431..6d268ad1 100644 --- a/server/build/webpack.js +++ b/server/build/webpack.js @@ -79,7 +79,7 @@ function externalsConfig (dir, isServer) { return callback() } - if (res.match(/node_modules[/\\].*\.js/)) { + if (res.match(/node_modules[/\\].*\.js$/)) { return callback(null, `commonjs ${request}`) }