Common
(cracoConfig: CracoConfig, fileName: string)
| 17 | /************ Common ************/ |
| 18 | |
| 19 | function 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 | |
| 30 | function resolveConfigFilePathInner( |
| 31 | cracoConfig: CracoConfig, |
no test coverage detected
searching dependent graphs…