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:
Ilia Choly 2024-11-30 14:30:55 -05:00
parent a4b088e410
commit f1a90a23a0

View file

@ -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',