MCPcopy
hub / github.com/rollup/rollup / getDefaultFromCjs

Function getDefaultFromCjs

cli/run/loadConfigFile.ts:96–98  ·  view source on GitHub ↗
(namespace: GenericConfigObject)

Source from the content-addressed store, hash-verified

94}
95
96function getDefaultFromCjs(namespace: GenericConfigObject): unknown {
97 return namespace.default || namespace;
98}
99
100function getConfigImportAttributesKey(input: unknown): ImportAttributesKey | undefined {
101 if (input === 'assert' || input === 'with') return input;

Callers 1

loadConfigFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…