Commit c04cae1
committed
test(commonjs): add regression for wrapped external Node built-ins under strictRequires
- New fixture: module-side-effects-external-node-builtin-wrapped
- Ensures transform doesn’t crash when resolving moduleSideEffects for wrapped externals
- Provides __filename in test context to avoid env-dependent failures
Refs #19131 parent 8f298e1 commit c04cae1
4 files changed
Lines changed: 52 additions & 0 deletions
File tree
- packages/commonjs/test
- fixtures/function/module-side-effects-external-node-builtin-wrapped
- snapshots
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
packages/commonjs/test/fixtures/function/module-side-effects-external-node-builtin-wrapped/main.js
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6697 | 6697 | | |
6698 | 6698 | | |
6699 | 6699 | | |
| 6700 | + | |
| 6701 | + | |
| 6702 | + | |
| 6703 | + | |
| 6704 | + | |
| 6705 | + | |
| 6706 | + | |
| 6707 | + | |
| 6708 | + | |
| 6709 | + | |
| 6710 | + | |
| 6711 | + | |
| 6712 | + | |
| 6713 | + | |
| 6714 | + | |
| 6715 | + | |
| 6716 | + | |
| 6717 | + | |
| 6718 | + | |
| 6719 | + | |
| 6720 | + | |
| 6721 | + | |
| 6722 | + | |
| 6723 | + | |
| 6724 | + | |
| 6725 | + | |
| 6726 | + | |
| 6727 | + | |
| 6728 | + | |
| 6729 | + | |
| 6730 | + | |
| 6731 | + | |
| 6732 | + | |
| 6733 | + | |
6700 | 6734 | | |
6701 | 6735 | | |
6702 | 6736 | | |
| |||
Binary file not shown.
0 commit comments