Repository navigation
Commit f3881d8
fix(concatenate-modules): keep a wrapped reference's ASI guard outside its parentheses (#22068)
getFinalName re-parenthesized a reference whose rawName already carried an
ASI guard, nesting the semicolon inside the new parentheses and emitting
JavaScript that does not parse.
Claude-Session: https://claude.ai/code/session_01MDVzu1fMFHqzayaaQXZCYE
Co-authored-by: Claude Opus 5 <[email protected]>1 parent e142eea commit f3881d8
22 files changed
Lines changed: 4015 additions & 3 deletions
File tree
- .changeset
- lib/optimize
- test/configCases/concatenate-modules
- commonjs-wrapped-assignment-asi-position-output-module
- __snapshots__
- commonjs-wrapped-assignment-asi-position-require
- __snapshots__
- commonjs-wrapped-assignment-asi-position
- __snapshots__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
437 | 449 | | |
438 | 450 | | |
439 | 451 | | |
| |||
1002 | 1014 | | |
1003 | 1015 | | |
1004 | 1016 | | |
1005 | | - | |
| 1017 | + | |
1006 | 1018 | | |
1007 | 1019 | | |
1008 | 1020 | | |
1009 | 1021 | | |
1010 | | - | |
| 1022 | + | |
1011 | 1023 | | |
1012 | 1024 | | |
1013 | 1025 | | |
| |||
0 commit comments