Merge pull request #1339 from cancerberoSgx/patch-1

fix worker paths in parcel
This commit is contained in:
Alexandru Dima 2019-03-04 09:57:50 +01:00 committed by GitHub
commit d064a46b48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -138,18 +138,18 @@ import * as monaco from 'monaco-editor';
self.MonacoEnvironment = {
getWorkerUrl: function(moduleId, label) {
if (label === 'json') {
return './json.worker.bundle.js';
return './json.worker.js';
}
if (label === 'css') {
return './css.worker.bundle.js';
return './css.worker.js';
}
if (label === 'html') {
return './html.worker.bundle.js';
return './html.worker.js';
}
if (label === 'typescript' || label === 'javascript') {
return './ts.worker.bundle.js';
return './ts.worker.js';
}
return './editor.worker.bundle.js';
return './editor.worker.js';
},
};