Skip to content

pantoken-root / bundlers/next/src / withPantoken

دالة: withPantoken() ​

withPantoken(nextConfig?, options?): NextConfigLike

Experimental

غلف تكوين Next.js بحيث يتم تحويل حزم Instructure UI.

Parameters ​

nextConfig? ​

NextConfigLike = {}

تكوين Next الحالي (الافتراضي {}).

options? ​

WithPantokenOptions = {}

WithPantokenOptions.

Returns ​

NextConfigLike

التكوين المُعزّز.

Examples ​

غلف ملف next.config.mjs الخاص بك

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

export default withPantoken({ reactStrictMode: true });

حوّل حزم InstUI الإضافية

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

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