Skip to content

Commit 9ac3383

Browse files
Keen Yee LiauAndrewKushnir
authored andcommitted
build(language-service): remove typescript from ivy bundle (angular#38088)
Currently the Ivy language service bundle is [10MB]( https://unpkg.com/browse/@angular/[email protected]/bundles/) because we accidentally included typescript in the bundle. With this change, the bundle size goes down to 1.6MB, which is even smaller than the View Engine bundle (1.8MB). ```bash $ yarn bazel build //packages/language-service/bundles:ivy $ ls -lh dist/bin/packages/language-service/bundles/ivy.umd.js 1.6M Jul 15 15:49 dist/bin/packages/language-service/bundles/ivy.umd.js ``` PR Close angular#38088
1 parent 06ac757 commit 9ac3383

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/language-service/bundles/BUILD.bazel

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ ls_rollup_bundle(
2424
globals = {
2525
"fs": "fs",
2626
"path": "path",
27-
"typescript/lib/tsserverlibrary": "ts",
27+
"typescript": "ts",
28+
"typescript/lib/tsserverlibrary": "tss",
2829
},
2930
license_banner = ":banner",
3031
visibility = ["//packages/language-service:__pkg__"],

0 commit comments

Comments
 (0)