Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2017-07-20 21:41:35 +0300
committerLuke "Jared" Bennett <lbennett@gitlab.com>2017-07-20 21:41:35 +0300
commitf5f54cf04277e71cc381aa51b7c0a23f51a4e00b (patch)
tree331117d0e36a0fca42e1b579edeb2233a887e592 /config/webpack.config.js
parent382033dd9a6fd466fd9cfe0b5b7a50396f7898f4 (diff)
exempt webworker script from copy closure transform
Diffstat (limited to 'config/webpack.config.js')
-rw-r--r--config/webpack.config.js2
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' +