From 2169b9a7d038f8013a7bc41652d2b0bd21c7a141 Mon Sep 17 00:00:00 2001 From: "Luke \"Jared\" Bennett" Date: Fri, 21 Jul 2017 12:17:17 +0100 Subject: ignore case for worker exclusion --- config/webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/webpack.config.js') 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' + -- cgit v1.2.1