From 8b25a642004b81d04d5810c931d890de12afae99 Mon Sep 17 00:00:00 2001 From: Keen Yee Liau Date: Wed, 15 Jul 2020 15:52:12 -0700 Subject: [PATCH] build(language-service): remove typescript from ivy bundle (#38088) Currently the Ivy language service bundle is [10MB]( https://unpkg.com/browse/@angular/language-service@10.0.4/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 #38088 --- packages/language-service/bundles/BUILD.bazel | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/language-service/bundles/BUILD.bazel b/packages/language-service/bundles/BUILD.bazel index 3f323a5893..d1c5915e17 100644 --- a/packages/language-service/bundles/BUILD.bazel +++ b/packages/language-service/bundles/BUILD.bazel @@ -28,7 +28,8 @@ ng_rollup_bundle( globals = { "fs": "fs", "path": "path", - "typescript/lib/tsserverlibrary": "ts", + "typescript": "ts", + "typescript/lib/tsserverlibrary": "tss", }, license_banner = ":banner", visibility = ["//packages/language-service:__pkg__"],