Home / Function/ _warnIncompatibleMethod() — vite Function Reference

_warnIncompatibleMethod() — vite Function Reference

Architecture documentation for the _warnIncompatibleMethod() function in pluginContainer.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  834386cf_882b_9efd_7bce_97424a8df891["_warnIncompatibleMethod()"]
  c261dae5_9c68_4b7d_8b09_fe13190425fe["PluginContext"]
  834386cf_882b_9efd_7bce_97424a8df891 -->|defined in| c261dae5_9c68_4b7d_8b09_fe13190425fe
  2413bb83_2f00_e69b_72f7_3b56a2779134["emitFile()"]
  2413bb83_2f00_e69b_72f7_3b56a2779134 -->|calls| 834386cf_882b_9efd_7bce_97424a8df891
  5a26a304_a297_15bc_8fd2_0e49e787d80f["setAssetSource()"]
  5a26a304_a297_15bc_8fd2_0e49e787d80f -->|calls| 834386cf_882b_9efd_7bce_97424a8df891
  1adea094_39cf_72a2_c028_30a7e4665b35["getFileName()"]
  1adea094_39cf_72a2_c028_30a7e4665b35 -->|calls| 834386cf_882b_9efd_7bce_97424a8df891
  3cf1d94a_16a2_96d6_7d1d_9757e22a2557["warn()"]
  834386cf_882b_9efd_7bce_97424a8df891 -->|calls| 3cf1d94a_16a2_96d6_7d1d_9757e22a2557
  style 834386cf_882b_9efd_7bce_97424a8df891 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/server/pluginContainer.ts lines 1021–1030

  _warnIncompatibleMethod(method: string): void {
    this.environment.logger.warn(
      colors.cyan(`[plugin:${this._plugin.name}] `) +
        colors.yellow(
          `context method ${colors.bold(
            `${method}()`,
          )} is not supported in serve mode. This plugin is likely not vite-compatible.`,
        ),
    )
  }

Domain

Subdomains

Calls

Frequently Asked Questions

What does _warnIncompatibleMethod() do?
_warnIncompatibleMethod() is a function in the vite codebase, defined in packages/vite/src/node/server/pluginContainer.ts.
Where is _warnIncompatibleMethod() defined?
_warnIncompatibleMethod() is defined in packages/vite/src/node/server/pluginContainer.ts at line 1021.
What does _warnIncompatibleMethod() call?
_warnIncompatibleMethod() calls 1 function(s): warn.
What calls _warnIncompatibleMethod()?
_warnIncompatibleMethod() is called by 3 function(s): emitFile, getFileName, setAssetSource.

Analyze Your Own Codebase

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

Try Supermodel Free