Skip to content

pantoken-root / bundlers/next/src / withPantoken

Fušla: withPantoken() ​

withPantoken(nextConfig?, options?): NextConfigLike

Eksperimentála

Buorret Next.js-konfigurašuvdna go Instructure UI-pakážat leat transpilerta.

Parametera ​

nextConfig? ​

NextConfigLike = {}

Dán várás Next-konfigurašuvdna (dolggin {}).

options? ​

WithPantokenOptions = {}

WithPantokenOptions.

Gullii / Gávdnat ​

NextConfigLike

Gollejuvvon konfigurašuvdna.

Exempla ​

Buorret dut next.config.mjs

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

export default withPantoken({ reactStrictMode: true });

Transpilerat eará InstUI-pakážat

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

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