Skip to content

pantoken / bundlers/next/src / withPantoken

Functie: withPantoken()

withPantoken(nextConfig?, options?): NextConfigLike

Experimenteel

Wikkel een Next.js-config zodat de Instructure UI-pakketten getranspileerd worden.

Parameters

nextConfig?

NextConfigLike = {}

De bestaande Next-config (standaard {}).

options?

WithPantokenOptions = {}

WithPantokenOptions.

Retourneert

NextConfigLike

De uitgebreide config.

Voorbeelden

Wikkel je next.config.mjs

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

export default withPantoken({ reactStrictMode: true });

Transpileer extra InstUI-pakketten

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

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