Skip to content

Commit 04b979a

Browse files
committed
exports variable conflicts with built global exports variable
1 parent dbc65e8 commit 04b979a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/system/FileLoader.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ export const esmImport = new Function(
1616
'return import(modulePath)'
1717
);
1818
export async function include(modulePath: string) {
19-
const exports = await esmImport(modulePath);
20-
return typeof exports?.default?.default !== 'undefined'
21-
? exports?.default
22-
: exports;
19+
const imports = await esmImport(modulePath);
20+
return typeof imports?.default?.default !== 'undefined'
21+
? imports?.default
22+
: imports;
2323
};
2424

2525
/**

0 commit comments

Comments
 (0)