Commit 1c1f985
fix(@ngtools/webpack): support inline style sourcemaps when using css-loader for component styles
When using the `css-loader` as the final entry in the Webpack loader chain, sourcemaps will not
be generated and inlined by the Webpack stylesheet runtime unless the `btoa` global function exists.
Now that the Angular CLI uses the `css-loader` to handle `@import`, the `btoa` function must be
provided within the custom VM execution context used to evaluate the output of the Webpack component
stylesheet processing pipeline.
(cherry picked from commit 55d3d6c)1 parent 3ff3917 commit 1c1f985
1 file changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
317 | 318 | | |
318 | 319 | | |
319 | 320 | | |
320 | | - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
321 | 328 | | |
322 | 329 | | |
323 | 330 | | |
| |||
0 commit comments