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

Function prettifyMessage

packages/vite/src/node/plugins/esbuild.ts:515–521  ·  view source on GitHub ↗
(m: EsbuildMessage, code: string)

Source from the content-addressed store, hash-verified

513}
514
515function prettifyMessage(m: EsbuildMessage, code: string): string {
516 let res = colors.yellow(m.text)
517 if (m.location) {
518 res += `\n` + generateCodeFrame(code, m.location)
519 }
520 return res + `\n`
521}
522
523let globalTSConfigResolutionCache: TsconfigCache | undefined
524const tsconfigResolutionCacheMap = new WeakMap<ResolvedConfig, TsconfigCache>()

Callers 2

transformWithEsbuildFunction · 0.85
transformFunction · 0.85

Calls 1

generateCodeFrameFunction · 0.90

Tested by

no test coverage detected