Skip to content

Commit

Permalink
next-plugin: Support Next.js v12 (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
swudged committed Oct 27, 2021
1 parent 172c1d9 commit 18363ee
Show file tree
Hide file tree
Showing 5 changed files with 233 additions and 264 deletions.
5 changes: 5 additions & 0 deletions .changeset/violet-apples-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@vanilla-extract/next-plugin': patch
---

Support Next.js v12
2 changes: 1 addition & 1 deletion examples/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"start": "next start"
},
"dependencies": {
"next": "^11.0.0",
"next": "^12.0.0",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/next-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
"next": ">=11.0.0"
},
"devDependencies": {
"next": "^11.0.0"
"next": "^12.0.0"
}
}
2 changes: 2 additions & 0 deletions packages/next-plugin/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ export const createVanillaExtractPlugin =
isClient: !isServer,
isServer,
isDevelopment: dev,
future: nextConfig.future || {},
experimental: nextConfig.experimental || {},
},
[],
[],
Expand Down

0 comments on commit 18363ee

Please sign in to comment.