MCPcopy
hub / github.com/FredKSchott/snowpack / loadConfigurationFile

Function loadConfigurationFile

snowpack/src/config.ts:779–787  ·  view source on GitHub ↗
(
  filename: string,
  overrides: SnowpackUserConfig = {},
)

Source from the content-addressed store, hash-verified

777}
778
779async function loadConfigurationFile(
780 filename: string,
781 overrides: SnowpackUserConfig = {},
782): Promise<{filepath: string | undefined; config: SnowpackUserConfig} | null> {
783 const loc = path.resolve(overrides.root || process.cwd(), filename);
784 if (!existsSync(loc)) return null;
785 const config = await REQUIRE_OR_IMPORT(loc);
786 return {filepath: loc, config};
787}
788
789export async function loadConfiguration(
790 overrides: SnowpackUserConfig = {},

Callers 1

loadConfigurationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected