Skip to content

pantoken-root / vite

vite ​

Compatibility ​

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

Full compatibility matrix

實驗性

@pantoken/vite — 為 pantoken 提供的 Vite 外掛。

它暴露兩個虛擬模組,讓應用程式可以在不直接匯入大型套件的情況下使用 tokens,並能自動將樣式表注入到 HTML 入口:

  • virtual:pantoken/css — 樣式表字串(預設匯出)。
  • virtual:pantoken/tokens — 已解析的 token IR(tokens 命名 + 預設匯出)。

介面 ​

函式 ​

參考 ​

default ​

重新命名並重新匯出 pantoken