---
url: /api/bundlers/next/src.md
---
[pantoken-root](../../../index.md) / next

# next

## Compatibility

Target: Next.js. Current format: `Production build transpiling and rendering Instructure UI 11.7.8 with React 19.3.0`. Minimum host version: `16.0.0`. Tested through `16.3.8`. Newer releases require review.

[Full compatibility matrix](../../../../compatibility)

Experimental

`@pantoken/next` — a Next.js config adapter.

Instructure UI ships ESM packages that Next must transpile (`transpilePackages`), the #1 papercut
when running InstUI on Next. `withPantoken` merges the InstUI packages into that list. Wrap your
`next.config`, then import `@pantoken/css` in your root layout for the tokens.

## Interfaces

* [NextConfigLike](interfaces/NextConfigLike.md)
* [WithPantokenOptions](interfaces/WithPantokenOptions.md)

## Variables

* [INSTUI_TRANSPILE_PACKAGES](variables/INSTUI_TRANSPILE_PACKAGES.md)

## Functions

* [withPantoken](functions/withPantoken.md)

## References

### default

Renames and re-exports [withPantoken](functions/withPantoken.md)
