File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -85,14 +85,18 @@ export default function App() {
8585
8686``` js
8787// next.config.js
88- import createVanillaExtractPlugin from ' @vanilla-extract/next-plugin' ;
88+ const {
89+ createVanillaExtractPlugin
90+ } = require (' @vanilla-extract/next-plugin' );
91+ const withVanillaExtract = createVanillaExtractPlugin ();
8992
93+ /** @type {import('next').NextConfig} */
9094const nextConfig = {
9195 transpilePackages: [' @company/design-system' ]
9296};
9397
9498// Next.js Vanilla Extract integration will now compile @company/design-system styles
95- module .exports = createVanillaExtractPlugin (nextConfig);
99+ module .exports = withVanillaExtract (nextConfig);
96100```
97101
98102[ `transpilepackages` ] : https://nextjs.org/docs/app/api-reference/next-config-js/transpilePackages
You can’t perform that action at this time.
0 commit comments