diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-07-20 19:41:35 +0100 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-07-20 19:41:35 +0100 |
commit | f5f54cf04277e71cc381aa51b7c0a23f51a4e00b (patch) | |
tree | 331117d0e36a0fca42e1b579edeb2233a887e592 | |
parent | 382033dd9a6fd466fd9cfe0b5b7a50396f7898f4 (diff) | |
download | gitlab-ce-f5f54cf04277e71cc381aa51b7c0a23f51a4e00b.tar.gz |
exempt webworker script from copy closure transform
-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 d2930b2fe87..412e12f6ac6 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)) { + if (/\.js$/.test(path) && !/workerMain/.test(path)) { return ( '(function(){\n' + 'var define = this.define, require = this.require;\n' + |