Skip to content

Commit

Permalink
chore: fix type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jun 28, 2024
1 parent 60a23e3 commit 9a36d0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/require.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function jitiRequire(ctx: Context, id: string, async: boolean) {
try {
debug(ctx, `[bun] [native] ${id}`);
id = jitiResolve(ctx, id);
if (async) {
if (async && ctx.nativeImport) {
return ctx.nativeImport(id).then((m: any) => {
if (ctx.opts.requireCache === false) {
delete ctx.nativeRequire.cache[id];
Expand Down

0 comments on commit 9a36d0e

Please sign in to comment.