diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-07-21 12:17:17 +0100 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-07-21 12:17:17 +0100 |
commit | 2169b9a7d038f8013a7bc41652d2b0bd21c7a141 (patch) | |
tree | 4e6703e21def0642f8a7d59a456a7b2a69d1240d /config/webpack.config.js | |
parent | dbafcc062d291e2eed779e73f3e848bb83e8191b (diff) | |
download | gitlab-ce-2169b9a7d038f8013a7bc41652d2b0bd21c7a141.tar.gz |
ignore case for worker exclusion
Diffstat (limited to 'config/webpack.config.js')
-rw-r--r-- | config/webpack.config.js | 2 |
1 files changed, 1 insertions, 1 deletions
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' + |