mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 16:15:41 +01:00
Fixes #8: Avoid arrow functions in generated code
This commit is contained in:
parent
6b7dfecca4
commit
61bfb5f8a6
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
|
@ -95,7 +95,7 @@ function createLoaderRules(languages, features, workers, publicPath) {
|
|||
[label]: `${publicPath ? `${stripTrailingSlash(publicPath)}/` : ''}${output}`,
|
||||
}), {});
|
||||
const globals = {
|
||||
'MonacoEnvironment': `((paths) => ({ getWorkerUrl: (moduleId, label) => paths[label] }))(${
|
||||
'MonacoEnvironment': `(function (paths) { return { getWorkerUrl: function (moduleId, label) { return paths[label]; } }; } )(${
|
||||
JSON.stringify(workerPaths, null, 2)
|
||||
})`,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue