Skip to content

Commit

Permalink
SSR for styled-components babel plugin (fixes #5988) (#6001)
Browse files Browse the repository at this point in the history
Enables SSR for styled-components babel-plugin to prevent HTML attribute mismatch warnings during rehydration.
  • Loading branch information
ztanner authored and timneutkens committed Jan 6, 2019
1 parent 22f9009 commit f9b98e6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions examples/with-styled-components/.babelrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{
"presets": [
"next/babel"
],
"plugins": [
"styled-components"
]
"presets": ["next/babel"],
"plugins": [["styled-components", { "ssr": true }]]
}

0 comments on commit f9b98e6

Please sign in to comment.