Repository navigation
Commit c1a6810
committed
fix: keep the side-effect annotations in a minified library
Terser drops `/*#__PURE__*/` unless asked not to, so a production library build
erased the information it had just been given. Preserve annotations in the
default JavaScript minimizer options whenever the output is consumed as a
library.
Refs #171211 parent ae09563 commit c1a6810
4 files changed
Lines changed: 60 additions & 2 deletions
File tree
- lib/config
- test/configCases/side-effects/pure-annotation-minified
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
578 | 578 | | |
579 | 579 | | |
580 | 580 | | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
581 | 584 | | |
582 | 585 | | |
583 | 586 | | |
| |||
2444 | 2447 | | |
2445 | 2448 | | |
2446 | 2449 | | |
| 2450 | + | |
2447 | 2451 | | |
2448 | 2452 | | |
2449 | 2453 | | |
2450 | 2454 | | |
2451 | 2455 | | |
2452 | | - | |
| 2456 | + | |
2453 | 2457 | | |
2454 | 2458 | | |
2455 | 2459 | | |
| |||
2498 | 2502 | | |
2499 | 2503 | | |
2500 | 2504 | | |
2501 | | - | |
| 2505 | + | |
| 2506 | + | |
| 2507 | + | |
| 2508 | + | |
| 2509 | + | |
| 2510 | + | |
| 2511 | + | |
| 2512 | + | |
| 2513 | + | |
| 2514 | + | |
| 2515 | + | |
2502 | 2516 | | |
2503 | 2517 | | |
2504 | 2518 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
0 commit comments