Commit 1e3ecbd
perf(@ngtools/webpack): avoid bootstrap conversion AST traversal where possible
To support AOT compilation the Angular bootstrap call needs to be converted from
using `platform-browser-dynamic` to `platform-browser`. This transform was previously
being executed against every source file within the program regardless of the presence of
`platformBrowserDynamic`. An initial check is now performed that can avoid AST traversal
when the bootstrapping call is not present in a file.
(cherry picked from commit 4fa8392)1 parent 3184eb0 commit 1e3ecbd
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
77 | 83 | | |
78 | 84 | | |
79 | 85 | | |
| |||
86 | 92 | | |
87 | 93 | | |
88 | 94 | | |
89 | | - | |
| 95 | + | |
90 | 96 | | |
91 | 97 | | |
92 | 98 | | |
| |||
115 | 121 | | |
116 | 122 | | |
117 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
118 | 128 | | |
119 | 129 | | |
120 | 130 | | |
| |||
0 commit comments