Skip to content

Commit 3b9dbb4

Browse files
test: fix
1 parent 80f9479 commit 3b9dbb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/build/config-format/typescript-cjs-using-nodejs/typescript.test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe("webpack cli", () => {
1919
WEBPACK_CLI_FORCE_LOAD_ESM_CONFIG: true,
2020
},
2121
// Fallback to `ts-node/esm` for old Node.js versions
22-
nodeOptions: major >= 24 ? [] : ["--experimental-loader=ts-node/esm"],
22+
nodeOptions: major >= 24 ? [] : ["--require=ts-node/register"],
2323
},
2424
);
2525

0 commit comments

Comments
 (0)