Skip to content

[examples] Update Next.js example to use ESM #88

Open
@oliviertassinari

Description

@oliviertassinari

Summary

const { withPigment, extendTheme } = require('@pigment-css/nextjs-plugin');

is using CJS. But npx create-next-app@latest gives you a next.config.mjs file. So we need to update this example.

Motivation

Make it easier to copy and paste the example to an existing project.

Metadata

Metadata

Assignees

Labels

examplesRelating to /examplesstatus: waiting for maintainerThese issues haven't been looked at yet by a maintainer

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions