1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

SSR for styled-components babel plugin (fixes #5988) (#6001)

Enables SSR for styled-components babel-plugin to prevent HTML attribute mismatch warnings during rehydration.
This commit is contained in:
Zack Tanner 2019-01-06 15:12:35 -08:00 committed by Tim Neutkens
parent 22f9009816
commit f9b98e6cf7

View file

@ -1,8 +1,4 @@
{
"presets": [
"next/babel"
],
"plugins": [
"styled-components"
]
"presets": ["next/babel"],
"plugins": [["styled-components", { "ssr": true }]]
}