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

Function warnTransformWithEsbuildUsageOnce

packages/vite/src/node/plugins/esbuild.ts:86–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84
85let warnedTransformWithEsbuild = false
86const warnTransformWithEsbuildUsageOnce = () => {
87 if (warnedTransformWithEsbuild) return
88 warnedTransformWithEsbuild = true
89
90 // eslint-disable-next-line no-console -- logger cannot be used here
91 console.warn(
92 colors.yellow(
93 '`transformWithEsbuild` is deprecated and will be removed in the future. ' +
94 'Please migrate to `transformWithOxc`.',
95 ),
96 )
97}
98
99export async function transformWithEsbuild(
100 code: string,

Callers 1

transformWithEsbuildFunction · 0.85

Calls 1

warnMethod · 0.65

Tested by

no test coverage detected