Commit 4fc722c
committed
fix(@angular/build): inline external sourcemaps for workspace library files
When no Babel plugins are required, the JavaScript transformer returns library
files as-is, preserving the comment but never reading
the referenced map file from disk. esbuild does not follow external sourcemap
links in input files, so the chain from bundled output back to the original
TypeScript source is never formed.
Read the external map file and return an inline base64 sourcemap instead.
esbuild processes inline sourcemaps from input files correctly, allowing it
to compose the full sourcemap chain through to the original TypeScript source.1 parent 98450e1 commit 4fc722c
File tree
1 file changed
+37
-1
lines changed- packages/angular/build/src/tools/esbuild
1 file changed
+37
-1
lines changedLines changed: 37 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
99 | 135 | | |
100 | 136 | | |
101 | 137 | | |
| |||
0 commit comments