Home / Function/ rollupOptionsDeprecationCall() — vite Function Reference

rollupOptionsDeprecationCall() — vite Function Reference

Architecture documentation for the rollupOptionsDeprecationCall() function in utils.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  bb7c80f0_9550_8484_5def_1d65cf838e3c["rollupOptionsDeprecationCall()"]
  031bc221_67a8_c579_f2bf_bb30a08beeb2["utils.ts"]
  bb7c80f0_9550_8484_5def_1d65cf838e3c -->|defined in| 031bc221_67a8_c579_f2bf_bb30a08beeb2
  f56ee71e_4165_1d46_cf2e_e9dc68848891["setupRollupOptionCompat()"]
  f56ee71e_4165_1d46_cf2e_e9dc68848891 -->|calls| bb7c80f0_9550_8484_5def_1d65cf838e3c
  style bb7c80f0_9550_8484_5def_1d65cf838e3c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/utils.ts lines 1236–1248

const rollupOptionsDeprecationCall = (() => {
  return () => {
    const method = process.env.VITE_DEPRECATION_TRACE ? 'trace' : 'warn'
    // eslint-disable-next-line no-console
    console[method](
      '`optimizeDeps.rollupOptions` / `ssr.optimizeDeps.rollupOptions` is deprecated. ' +
        'Use `optimizeDeps.rolldownOptions` instead. Note that this option may be set by a plugin. ' +
        (method === 'trace'
          ? 'Showing trace because VITE_DEPRECATION_TRACE is set.'
          : 'Set VITE_DEPRECATION_TRACE=1 to see where it is called.'),
    )
  }
})()

Domain

Subdomains

Frequently Asked Questions

What does rollupOptionsDeprecationCall() do?
rollupOptionsDeprecationCall() is a function in the vite codebase, defined in packages/vite/src/node/utils.ts.
Where is rollupOptionsDeprecationCall() defined?
rollupOptionsDeprecationCall() is defined in packages/vite/src/node/utils.ts at line 1236.
What calls rollupOptionsDeprecationCall()?
rollupOptionsDeprecationCall() is called by 1 function(s): setupRollupOptionCompat.

Analyze Your Own Codebase

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

Try Supermodel Free