We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbc65e8 commit 04b979aCopy full SHA for 04b979a
1 file changed
src/system/FileLoader.ts
@@ -16,10 +16,10 @@ export const esmImport = new Function(
16
'return import(modulePath)'
17
);
18
export async function include(modulePath: string) {
19
- const exports = await esmImport(modulePath);
20
- return typeof exports?.default?.default !== 'undefined'
21
- ? exports?.default
22
- : exports;
+ const imports = await esmImport(modulePath);
+ return typeof imports?.default?.default !== 'undefined'
+ ? imports?.default
+ : imports;
23
};
24
25
/**
0 commit comments