Remove all vs workers from transform
This commit is contained in:
parent
e38f6fcb54
commit
bd9f5950ee
|
@ -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' +
|
||||
|
|
Loading…
Reference in New Issue