Skip to content

Commit 3cb9943

Browse files
committed
correctly process node.js builtin modules
1 parent 1af3289 commit 3cb9943

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/unit/fetcher/stream-wrappers/webpack.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ describe("test env compatibility", () => {
2222
".js": [".ts", ".js"],
2323
".jsx": [".tsx", ".jsx"],
2424
},
25+
fallback: {
26+
"url": false,
27+
"path": false,
28+
"module": false,
29+
},
30+
},
31+
externals: {
32+
"node:url": "commonjs2 node:url",
33+
"node:path": "commonjs2 node:path",
34+
"node:module": "commonjs2 node:module",
2535
},
2636
},
2737
(err, stats) => {

0 commit comments

Comments
 (0)