MCPcopy
hub / github.com/dilanx/craco / resolveConfigFilePath

Function resolveConfigFilePath

packages/craco/src/lib/cra.ts:19–28  ·  view source on GitHub ↗

Common

(cracoConfig: CracoConfig, fileName: string)

Source from the content-addressed store, hash-verified

17/************ Common ************/
18
19function resolveConfigFilePath(cracoConfig: CracoConfig, fileName: string) {
20 if (!envLoaded) {
21 // Environment variables must be loaded before the CRA paths, otherwise they will not be applied.
22 require(resolveConfigFilePathInner(cracoConfig, 'env.js'));
23
24 envLoaded = true;
25 }
26
27 return resolveConfigFilePathInner(cracoConfig, fileName);
28}
29
30function resolveConfigFilePathInner(
31 cracoConfig: CracoConfig,

Callers 4

getCraPathsPathFunction · 0.85
getWebpackDevConfigPathFunction · 0.85
getWebpackProdConfigPathFunction · 0.85
getDevServerConfigPathFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…