Repository navigation
Commit a4394b4
authored
fix(javascript): leave the enclose wrapper's unnamed source out of the minifier's source map (#22654)
* fix(javascript): leave the enclose wrapper's unnamed source out of the minifier's source map
terser adds a null entry to sources for the wrapper enclose parses from no
file, which no mapping references and which Rollup rejects (terser#1333).
* fix(javascript): keep the comments of an empty statement the SyntaxTree printer drops
Same change as #22649, which main needs for the syntax-printer suite to pass.1 parent 2f34cea commit a4394b4
3 files changed
Lines changed: 23 additions & 4 deletions
File tree
- .changeset
- lib/javascript
- test/unitCases
| 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 | |
|---|---|---|---|
| |||
7376 | 7376 | | |
7377 | 7377 | | |
7378 | 7378 | | |
| 7379 | + | |
7379 | 7380 | | |
7380 | 7381 | | |
7381 | | - | |
| 7382 | + | |
7382 | 7383 | | |
7383 | 7384 | | |
7384 | 7385 | | |
| |||
7555 | 7556 | | |
7556 | 7557 | | |
7557 | 7558 | | |
7558 | | - | |
| 7559 | + | |
7559 | 7560 | | |
7560 | 7561 | | |
7561 | 7562 | | |
| |||
7930 | 7931 | | |
7931 | 7932 | | |
7932 | 7933 | | |
7933 | | - | |
| 7934 | + | |
| 7935 | + | |
| 7936 | + | |
| 7937 | + | |
| 7938 | + | |
7934 | 7939 | | |
7935 | 7940 | | |
7936 | 7941 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6025 | 6025 | | |
6026 | 6026 | | |
6027 | 6027 | | |
| 6028 | + | |
| 6029 | + | |
| 6030 | + | |
| 6031 | + | |
| 6032 | + | |
| 6033 | + | |
| 6034 | + | |
| 6035 | + | |
| 6036 | + | |
| 6037 | + | |
| 6038 | + | |
| 6039 | + | |
| 6040 | + | |
| 6041 | + | |
6028 | 6042 | | |
6029 | 6043 | | |
6030 | 6044 | | |
| |||
0 commit comments