diff --git a/lib/main.ts b/lib/main.ts index aaafb69da..2076715ab 100644 --- a/lib/main.ts +++ b/lib/main.ts @@ -96,8 +96,10 @@ export async function main( } }, *node() { + // Annotate dynamic import so that webpack ignores it. + // See https://webpack.js.org/api/module-methods/#webpackignore let { default: process } = yield* call(() => - import("node:process") + import(/* webpackIgnore: true */ "node:process") ); hardexit = (status) => process.exit(status); try {