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() {
85
85
86
86
``` js
87
87
// 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 ();
89
92
93
+ /** @type {import('next').NextConfig} */
90
94
const nextConfig = {
91
95
transpilePackages: [' @company/design-system' ]
92
96
};
93
97
94
98
// Next.js Vanilla Extract integration will now compile @company/design-system styles
95
- module .exports = createVanillaExtractPlugin (nextConfig);
99
+ module .exports = withVanillaExtract (nextConfig);
96
100
```
97
101
98
102
[ `transpilepackages` ] : https://nextjs.org/docs/app/api-reference/next-config-js/transpilePackages
You can’t perform that action at this time.
0 commit comments