mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 23:13:02 +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: [
|
||||
'src/language/typescript/monaco.contribution.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({
|
||||
base: 'language/typescript',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue