MCPcopy
hub / github.com/vitejs/vite / warn

Method warn

packages/vite/src/node/server/pluginContainer.ts:899–908  ·  view source on GitHub ↗
(
    log: string | RollupLog | (() => string | RollupLog),
    position?: number | { column: number; line: number },
  )

Source from the content-addressed store, hash-verified

897 }
898
899 override warn(
900 log: string | RollupLog | (() => string | RollupLog),
901 position?: number | { column: number; line: number },
902 ): void {
903 const err = this._formatLog(
904 typeof log === 'function' ? log() : log,
905 position,
906 )
907 super.warn(err)
908 }
909
910 override error(
911 e: string | RollupError,

Callers

nothing calls this directly

Calls 3

_formatLogMethod · 0.95
logFunction · 0.85
warnMethod · 0.65

Tested by

no test coverage detected