mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-23 00:22:56 +01:00
Merge pull request #1339 from cancerberoSgx/patch-1
fix worker paths in parcel
This commit is contained in:
commit
d064a46b48
1 changed files with 5 additions and 5 deletions
|
|
@ -138,18 +138,18 @@ import * as monaco from 'monaco-editor';
|
||||||
self.MonacoEnvironment = {
|
self.MonacoEnvironment = {
|
||||||
getWorkerUrl: function(moduleId, label) {
|
getWorkerUrl: function(moduleId, label) {
|
||||||
if (label === 'json') {
|
if (label === 'json') {
|
||||||
return './json.worker.bundle.js';
|
return './json.worker.js';
|
||||||
}
|
}
|
||||||
if (label === 'css') {
|
if (label === 'css') {
|
||||||
return './css.worker.bundle.js';
|
return './css.worker.js';
|
||||||
}
|
}
|
||||||
if (label === 'html') {
|
if (label === 'html') {
|
||||||
return './html.worker.bundle.js';
|
return './html.worker.js';
|
||||||
}
|
}
|
||||||
if (label === 'typescript' || label === 'javascript') {
|
if (label === 'typescript' || label === 'javascript') {
|
||||||
return './ts.worker.bundle.js';
|
return './ts.worker.js';
|
||||||
}
|
}
|
||||||
return './editor.worker.bundle.js';
|
return './editor.worker.js';
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue