Skip to content

Commit c52e46e

Browse files
committed
lint fix
1 parent 7148959 commit c52e46e

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

lib/internal/process/esm_loader.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22

33
const {
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)

0 commit comments

Comments
 (0)