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

Function warn

packages/vite/src/node/logger.ts:141–144  ·  view source on GitHub ↗
(msg, opts)

Source from the content-addressed store, hash-verified

139 output('info', msg, opts)
140 },
141 warn(msg, opts) {
142 logger.hasWarned = true
143 output('warn', msg, opts)
144 },
145 warnOnce(msg, opts) {
146 if (warnedMessages.has(msg)) return
147 logger.hasWarned = true

Callers 2

onwarnFunction · 0.50
traverseHtmlFunction · 0.50

Calls 1

outputFunction · 0.85

Tested by

no test coverage detected