---
url: /api/bundlers/vite/src.md
---
[pantoken-root](../../../index.md) / vite

# vite

## Compatibility

Target: Vite. Minimum host version: `8.0.0`. Tested through `8.3.2`. Newer releases require review.

[Full compatibility matrix](../../../../compatibility)

Experimental

`@pantoken/vite` — a Vite plugin for pantoken.

It exposes two virtual modules so apps consume tokens without importing the large packages
directly, and can auto-inject the stylesheet into the HTML entry:

* `virtual:pantoken/css` — the stylesheet string (default export).
* `virtual:pantoken/tokens` — the resolved token IR (`tokens` named + default export).

## Interfaces

* [PantokenViteOptions](interfaces/PantokenViteOptions.md)

## Functions

* [pantoken](functions/pantoken.md)

## References

### default

Renames and re-exports [pantoken](functions/pantoken.md)
