Skip to content

Commit

Permalink
fix: use native import for load fn
Browse files Browse the repository at this point in the history
  • Loading branch information
tada5hi committed Oct 11, 2024
1 parent 84a224b commit 68b1af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loader/built-in/module/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export class ModuleLoader implements Loader {
return require(id);
}

return await this.instance.import(id);
return await import(id);
} catch (e) {
/* istanbul ignore next */
if (
Expand Down

0 comments on commit 68b1af9

Please sign in to comment.