MCPcopy
hub / github.com/webpack/webpack / import.js

File import.js

test/configCases/node/output-module-external/import.js:None–None  ·  test/configCases/node/output-module-external/import.js

Source from the content-addressed store, hash-verified

1const escapeRegExp = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, class="st">"\\$&");
2
3it(class="st">"should load node builtins via dynamic import", async () => {
4 const load = async (modulePromise) => {

Callers

nothing calls this directly

Calls 15

expectIfAvailableFunction · 0.85
entriesMethod · 0.80
createHashMethod · 0.80
isArrayMethod · 0.80
writeMethod · 0.80
loadFunction · 0.70
escapeRegExpFunction · 0.70
keysMethod · 0.65
resolveMethod · 0.65
itFunction · 0.50
toStringMethod · 0.45
digestMethod · 0.45

Tested by

no test coverage detected