mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-23 00:22:56 +01:00
Split typescriptService.js into separate module
Firefox addons have a hard limit of 4MB per JS file. The existing ts.worker.ts file can only be minified down to 5.6M. This change splits the vendored typescript library into a separate module to make code-splitting possible.
This commit is contained in:
parent
a4b088e410
commit
f1a90a23a0
1 changed files with 3 additions and 2 deletions
|
|
@ -136,9 +136,10 @@ buildESM({
|
||||||
entryPoints: [
|
entryPoints: [
|
||||||
'src/language/typescript/monaco.contribution.ts',
|
'src/language/typescript/monaco.contribution.ts',
|
||||||
'src/language/typescript/tsMode.ts',
|
'src/language/typescript/tsMode.ts',
|
||||||
'src/language/typescript/ts.worker.ts'
|
'src/language/typescript/ts.worker.ts',
|
||||||
|
'src/language/typescript/lib/typescriptServices.js'
|
||||||
],
|
],
|
||||||
external: ['monaco-editor-core', '*/tsMode', '*/monaco.contribution']
|
external: ['monaco-editor-core', '*/tsMode', '*/monaco.contribution', '*/lib/typescriptServices']
|
||||||
});
|
});
|
||||||
buildAMD({
|
buildAMD({
|
||||||
base: 'language/typescript',
|
base: 'language/typescript',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue