Split up the editor's worker and the editor worker helper scripts, remove AMD support

This commit is contained in:
Alex Dima
2025-03-20 18:37:55 +01:00
parent 91f0cb7b90
commit 46035d0296
23 changed files with 153 additions and 340 deletions

View File

@@ -10,7 +10,7 @@ module.exports = {
mode: 'production',
entry: {
'core': './core.js',
'editor.worker': '../../out-monaco-editor-core/esm/vs/editor/editor.worker.js',
'editorSimpleWorkerMain': '../../out-monaco-editor-core/esm/vs/editor/common/services/editorSimpleWorkerMain.js',
},
output: {
globalObject: 'self',
@@ -39,7 +39,6 @@ module.exports = {
},
resolve: {
alias: {
'monaco-editor-core/esm/vs/editor/editor.worker': path.resolve(__dirname, '../../out-monaco-editor-core/esm/vs/editor/editor.worker.js'),
'monaco-editor-core': path.resolve(__dirname, '../../out-monaco-editor-core/esm/vs/editor/editor.main.js'),
}
},