Commit 999d84c
authored
perf(@angular/build): avoid loading compiler-cli and typescript in js transform worker
Previously, `OxcLinker` imported `ConsoleLogger` and `LogLevel` directly from
`@angular/compiler-cli`. Even though `@angular/compiler-cli/linker` is an isolated,
lightweight runtime (depending only on `semver` and `convert-source-map`), resolving
the main `@angular/compiler-cli` entry point (`bundles/index.js`) eagerly evaluated
the full `ngtsc` compiler toolchain and required the 10 MB `typescript.js` bundle at
the top level.1 parent a0a6b42 commit 999d84c
1 file changed
Lines changed: 30 additions & 4 deletions
Lines changed: 30 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
49 | 76 | | |
50 | 77 | | |
51 | 78 | | |
| |||
56 | 83 | | |
57 | 84 | | |
58 | 85 | | |
59 | | - | |
60 | 86 | | |
61 | 87 | | |
62 | 88 | | |
63 | 89 | | |
64 | 90 | | |
65 | 91 | | |
66 | | - | |
| 92 | + | |
67 | 93 | | |
68 | 94 | | |
69 | 95 | | |
| |||
0 commit comments