Skip to content

pantoken-root / next

next ​

Compatibility ​

Target: Next.js. Current format: Production build transpiling and rendering Instructure UI 11.7.10 with React 19.3.0. Minimum host version: 16.0.0. Tested through 16.4.0. Newer releases require review.

Full compatibility matrix

实验性

@pantoken/next — 一个 Next.js 配置适配器。

Instructure UI 提供需要 Next 转译的 ESM 包(transpilePackages),这是在 Next 上运行 InstUI 时最头疼的问题。 withPantoken 会将 InstUI 包合并到该列表中。将你的 next.config 包裹起来,然后在根布局中导入 @pantoken/css 以使用这些 tokens。

接口 ​

变量 ​

函数 ​

引用 ​

default ​

重命名并重新导出 withPantoken