File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 11'use strict' ;
22
33const {
4+ ArrayPrototypeMap,
45 ObjectCreate,
56 PromiseAll,
67} = primordials ;
@@ -70,11 +71,13 @@ async function initializeLoader() {
7071 const parentURL = pathToFileURL ( cwd ) . href ;
7172 const importAssertions = ObjectCreate ( null ) ;
7273
73- const keyedExportsList = await PromiseAll ( customLoaders . map ( async url => {
74- const exports = await internalEsmLoader . import ( url , parentURL ,
75- importAssertions ) ;
76- return { exports, url } ;
77- } ) ) ;
74+ const keyedExportsList = await PromiseAll (
75+ ArrayPrototypeMap ( customLoaders , async ( url ) => {
76+ const exports = await internalEsmLoader . import ( url , parentURL ,
77+ importAssertions ) ;
78+ return { exports, url } ;
79+ } )
80+ ) ;
7881
7982 // Hooks must then be added to external/public loader
8083 // (so they're triggered in userland)
You can’t perform that action at this time.
0 commit comments