Skip to content

Commit 9a36d0e

Browse files
committed
chore: fix type issue
1 parent 60a23e3 commit 9a36d0e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/require.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function jitiRequire(ctx: Context, id: string, async: boolean) {
2828
try {
2929
debug(ctx, `[bun] [native] ${id}`);
3030
id = jitiResolve(ctx, id);
31-
if (async) {
31+
if (async && ctx.nativeImport) {
3232
return ctx.nativeImport(id).then((m: any) => {
3333
if (ctx.opts.requireCache === false) {
3434
delete ctx.nativeRequire.cache[id];

0 commit comments

Comments
 (0)