MCPcopy Create free account
hub / github.com/webpack/webpack-cli / getExoticExtensions

Method getExoticExtensions

packages/webpack-cli/src/webpack-cli.ts:2750–2759  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2748 // common-extension config exists, so defer importing it until then.
2749 let exoticExtensions: string[] | undefined;
2750 const getExoticExtensions = async () => {
2751 if (typeof exoticExtensions === "undefined") {
2752 const interpret = await import("interpret");
2753 const common = new Set(commonExtensions);
2754
2755 exoticExtensions = Object.keys(interpret.extensions).filter((ext) => !common.has(ext));
2756 }
2757
2758 return exoticExtensions;
2759 };
2760
2761 const directoryEntriesCache = new Map<string, Set<string> | null>();
2762 const readDirectoryEntries = async (directory: string) => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected