Skip to content

pantoken / bundlers/next/src / withPantoken

Mahi: withPantoken()

withPantoken(nextConfig?, options?): NextConfigLike

Whakamātautau

Whakarapahia te whirihanga Next.js kia taea ai te whakawhānui (transpile) i ngā mōkihi Instructure UI.

Ngā Tawhā

nextConfig?

NextConfigLike = {}

Te whirihanga Next o nāianei (taunoa {}).

options?

WithPantokenOptions = {}

WithPantokenOptions.

Whakahokia

NextConfigLike

Te whirihanga kua whakawhānuihia.

Ngā tauira

Whakarapahia tō next.config.mjs

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

export default withPantoken({ reactStrictMode: true });

Whakawhānuitia ētahi atu mōkihi InstUI

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

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