Skip to content

pantoken / bundlers/next/src / withPantoken

Fall: withPantoken()

withPantoken(nextConfig?, options?): NextConfigLike

Tilrauna

Umbúðu Next.js stillingarskrá svo Instructure UI pakkarnir séu transpileraðir.

Færibreytur

nextConfig?

NextConfigLike = {}

Núverandi Next-stilling (sjálfgefið {}).

options?

WithPantokenOptions = {}

WithPantokenOptions.

Skilar

NextConfigLike

Bætt stilling.

Dæmi

Umbúðu next.config.mjs skrána þína

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

export default withPantoken({ reactStrictMode: true });

Transpileraðu auka InstUI pakka

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

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