Skip to content

pantoken-root / bundlers/next/src / withPantoken

Fonksiyon: withPantoken() ​

withPantoken(nextConfig?, options?): NextConfigLike

Deneysel

Instructure UI paketlerinin transpile edilmesi için bir Next.js yapılandırmasını sarın.

Parametreler ​

nextConfig? ​

NextConfigLike = {}

Mevcut Next yapılandırması (varsayılan {}).

options? ​

WithPantokenOptions = {}

WithPantokenOptions.

Döndürür ​

NextConfigLike

Genişletilmiş yapılandırma.

Örnekler ​

next.config.mjs dosyanızı sarın

js
import { withPantoken } from "@pantoken/next";

export default withPantoken({ reactStrictMode: true });

Ek InstUI paketlerini dönüştürün

js
import { withPantoken } from "@pantoken/next";

export default withPantoken(
  { reactStrictMode: true },
  { transpile: ["@instructure/ui-modal"] },
);