MCPcopy Index your code
hub / github.com/rollup/rollup / isNotAbsoluteExternal

Function isNotAbsoluteExternal

src/ModuleLoader.ts:832–842  ·  view source on GitHub ↗
(
	id: string,
	source: string,
	makeAbsoluteExternalsRelative: boolean | 'ifRelativeSource'
)

Source from the content-addressed store, hash-verified

830}
831
832function isNotAbsoluteExternal(
833 id: string,
834 source: string,
835 makeAbsoluteExternalsRelative: boolean | 'ifRelativeSource'
836): boolean {
837 return (
838 makeAbsoluteExternalsRelative === true ||
839 (makeAbsoluteExternalsRelative === 'ifRelativeSource' && isRelative(source)) ||
840 !isAbsolute(id)
841 );
842}
843
844async function waitForDependencyResolution(loadPromise: LoadModulePromise) {
845 const [resolveStaticDependencyPromises, resolveDynamicImportPromises] = await loadPromise;

Calls 2

isRelativeFunction · 0.90
isAbsoluteFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…