MCPcopy
hub / github.com/rollup/rollup / logNonExternalSourcePhaseImport

Function logNonExternalSourcePhaseImport

src/utils/logs.ts:898–904  ·  view source on GitHub ↗
(source: string, importer: string)

Source from the content-addressed store, hash-verified

896}
897
898export function logNonExternalSourcePhaseImport(source: string, importer: string): RollupLog {
899 return {
900 code: NON_EXTERNAL_SOURCE_PHASE_IMPORT,
901 message: `Source phase import "${source}" in "${relativeId(importer)}" must be external. Source phase imports are only supported for external modules. Use the "external" option to mark this module as external.`,
902 url: getRollupUrl(URL_SOURCE_PHASE_IMPORTS)
903 };
904}
905
906export function logNoFileSystemInBrowser(method: string): RollupLog {
907 return {

Callers 2

Calls 2

getRollupUrlFunction · 0.90
relativeIdFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…