Commit fa047c8
committed
feat: chain input source maps through built-in minimizers
terser, uglify-js, and cssnano now receive the previous minimizer's
source map as their input source map, so chained minimizers
(e.g. \`minify: [TerserPlugin.terserMinify, TerserPlugin.uglifyJsMinify]\`
with \`devtool: "source-map"\`) emit a single combined source map that
points back to the original sources.
Adds three test cases that exercise multi-minimizer chains with source
maps: terser+terser, terser+uglify-js, and cssnano+cssnano. Updates
existing TerserPlugin and worker snapshots that previously captured
the un-chained intermediate map.1 parent 7fc0a91 commit fa047c8
5 files changed
Lines changed: 233 additions & 59 deletions
File tree
- src
- test
- __snapshots__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
| 292 | + | |
| 293 | + | |
293 | 294 | | |
294 | | - | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
295 | 300 | | |
296 | 301 | | |
297 | 302 | | |
| |||
538 | 543 | | |
539 | 544 | | |
540 | 545 | | |
541 | | - | |
| 546 | + | |
| 547 | + | |
542 | 548 | | |
543 | | - | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
544 | 553 | | |
545 | 554 | | |
546 | 555 | | |
| |||
740 | 749 | | |
741 | 750 | | |
742 | 751 | | |
743 | | - | |
| 752 | + | |
744 | 753 | | |
745 | 754 | | |
746 | 755 | | |
| |||
1301 | 1310 | | |
1302 | 1311 | | |
1303 | 1312 | | |
1304 | | - | |
| 1313 | + | |
1305 | 1314 | | |
1306 | 1315 | | |
1307 | 1316 | | |
| |||
0 commit comments