Home / Function/ warnTransformWithEsbuildUsageOnce() — vite Function Reference

warnTransformWithEsbuildUsageOnce() — vite Function Reference

Architecture documentation for the warnTransformWithEsbuildUsageOnce() function in esbuild.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  b947d693_c472_522f_b5ea_efcd9d72a3b0["warnTransformWithEsbuildUsageOnce()"]
  926e3b98_b813_2ff8_abb3_16447ab95544["esbuild.ts"]
  b947d693_c472_522f_b5ea_efcd9d72a3b0 -->|defined in| 926e3b98_b813_2ff8_abb3_16447ab95544
  bf4a41be_9dbf_35be_2072_4283cd478ae7["transformWithEsbuild()"]
  bf4a41be_9dbf_35be_2072_4283cd478ae7 -->|calls| b947d693_c472_522f_b5ea_efcd9d72a3b0
  style b947d693_c472_522f_b5ea_efcd9d72a3b0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/plugins/esbuild.ts lines 86–97

const warnTransformWithEsbuildUsageOnce = () => {
  if (warnedTransformWithEsbuild) return
  warnedTransformWithEsbuild = true

  // eslint-disable-next-line no-console -- logger cannot be used here
  console.warn(
    colors.yellow(
      '`transformWithEsbuild` is deprecated and will be removed in the future. ' +
        'Please migrate to `transformWithOxc`.',
    ),
  )
}

Domain

Subdomains

Frequently Asked Questions

What does warnTransformWithEsbuildUsageOnce() do?
warnTransformWithEsbuildUsageOnce() is a function in the vite codebase, defined in packages/vite/src/node/plugins/esbuild.ts.
Where is warnTransformWithEsbuildUsageOnce() defined?
warnTransformWithEsbuildUsageOnce() is defined in packages/vite/src/node/plugins/esbuild.ts at line 86.
What calls warnTransformWithEsbuildUsageOnce()?
warnTransformWithEsbuildUsageOnce() is called by 1 function(s): transformWithEsbuild.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free