diff --git a/docs/integrate-esm.md b/docs/integrate-esm.md index 1cd665a8..c5106688 100644 --- a/docs/integrate-esm.md +++ b/docs/integrate-esm.md @@ -24,7 +24,7 @@ self.MonacoEnvironment = { if (label === 'html') { return './html.worker.bundle.js'; } - if (label === 'typescript') { + if (label === 'typescript' || label === 'javascript') { return './ts.worker.bundle.js'; } return './editor.worker.bundle.js'; @@ -75,4 +75,4 @@ module.exports = { ] }; -``` \ No newline at end of file +```