Skip to content

Commit 7290217

Browse files
fix(code): add missing await
issue appears when using nested import
1 parent f767bc4 commit 7290217

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,5 +789,5 @@ export async function loadModule(path : string, options : Options = throwNotDefi
789789
if ( typeof file.content !== 'string' )
790790
throw new TypeError(`Invalid module content (${path}): ${ file.content }`);
791791

792-
return moduleCache[path] = moduleHandlers[file.extname](file.content, path, options);
792+
return moduleCache[path] = await moduleHandlers[file.extname](file.content, path, options);
793793
}

0 commit comments

Comments
 (0)