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
This commit is contained in:
Keen Yee Liau 2020-07-15 15:52:12 -07:00 committed by Andrew Kushnir
parent bd71f10234
commit 8b25a64200
1 changed files with 2 additions and 1 deletions

View File

@ -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__"],