MCPcopy
hub / github.com/webpack/webpack / load

Function load

test/configCases/node/output-module-external/import.js:4–7  ·  view source on GitHub ↗
(modulePromise)

Source from the content-addressed store, hash-verified

2
3it("should load node builtins via dynamic import", async () => {
4 const load = async (modulePromise) => {
5 const imported = await modulePromise;
6 return imported.default || imported;
7 };
8 const expectIfAvailable = (imported, fn) => {
9 if (imported) fn(imported);
10 };

Callers 1

import.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected