Skip to content

Commit eb2a433

Browse files
authored
Merge pull request #1007 from rrthomas/v3
Fix webpack compatibility
2 parents c20ba57 + f8858af commit eb2a433

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,10 @@ export async function main(
9191
}
9292
},
9393
*node() {
94+
// Annotate dynamic import so that webpack ignores it.
95+
// See https://webpack.js.org/api/module-methods/#webpackignore
9496
let { default: process } = yield* call(() =>
95-
import("node:process")
97+
import(/* webpackIgnore: true */ "node:process")
9698
);
9799
hardexit = (status) => process.exit(status);
98100
try {

0 commit comments

Comments
 (0)