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

Function shouldSkipWarning

packages/vite/src/node/plugins/oxc.ts:202–208  ·  view source on GitHub ↗
(warning: RolldownLog)

Source from the content-addressed store, hash-verified

200
201const warnedMessages = new Set<string>()
202function shouldSkipWarning(warning: RolldownLog): boolean {
203 if (warning.code === 'UNSUPPORTED_TSCONFIG_OPTION') {
204 if (warnedMessages.has(warning.message)) return true
205 warnedMessages.add(warning.message)
206 }
207 return false
208}
209
210export function oxcPlugin(config: ResolvedConfig): Plugin {
211 const options = config.oxc as OxcOptions

Callers 1

transformFunction · 0.85

Calls 2

hasMethod · 0.80
addMethod · 0.80

Tested by

no test coverage detected