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

Function isFutureDeprecationEnabled

packages/vite/src/node/deprecations.ts:44–49  ·  view source on GitHub ↗
(
  config: ResolvedConfig,
  type: keyof FutureOptions,
)

Source from the content-addressed store, hash-verified

42let _ignoreDeprecationWarnings = false
43
44export function isFutureDeprecationEnabled(
45 config: ResolvedConfig,
46 type: keyof FutureOptions,
47): boolean {
48 return !!config.future?.[type]
49}
50
51// Later we could have a `warnDeprecation` utils when the deprecation is landed
52/**

Callers 4

injectSsrFlagFunction · 0.90
resolveIdMethod · 0.90
loadMethod · 0.90
transformMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected