Unverified Commit a785f303 authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Match externals ending in .js not everything with .js (#4091)

Makes sure highlight.js/styles/dark.css doesn’t get caught by externals.
parent 43fe9ace
...@@ -79,7 +79,7 @@ function externalsConfig (dir, isServer) { ...@@ -79,7 +79,7 @@ function externalsConfig (dir, isServer) {
return callback() return callback()
} }
if (res.match(/node_modules[/\\].*\.js/)) { if (res.match(/node_modules[/\\].*\.js$/)) {
return callback(null, `commonjs ${request}`) return callback(null, `commonjs ${request}`)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment