diff --git a/config/webpack.config.js b/config/webpack.config.js index a92128f7aad..d6d0743b0b3 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -212,7 +212,7 @@ var config = { from: path.join(ROOT_PATH, `node_modules/monaco-editor/${IS_PRODUCTION ? 'min' : 'dev'}/vs`), to: 'monaco-editor/vs', transform: function(content, path) { - if (/\.js$/.test(path) && !/worker/.test(path)) { + if (/\.js$/.test(path) && !/worker/i.test(path)) { return ( '(function(){\n' + 'var define = this.define, require = this.require;\n' +