Remove all vs workers from transform

This commit is contained in:
Luke "Jared" Bennett 2017-07-21 11:20:48 +01:00
parent e38f6fcb54
commit bd9f5950ee
No known key found for this signature in database
GPG Key ID: 402ED51FB5D306C2
1 changed files with 1 additions and 1 deletions

View File

@ -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) && !/workerMain/.test(path)) {
if (/\.js$/.test(path) && !/worker/.test(path)) {
return (
'(function(){\n' +
'var define = this.define, require = this.require;\n' +