Skip to content

Commit de30829

Browse files
committed
fix(smooth-plugin-styled-components): optimize only in production
1 parent 704ce2e commit de30829

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/smooth-plugin-styled-components/src/smooth-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export function onRenderBody({ setHeadComponents, pathname }) {
3636
sheet.seal()
3737

3838
// Prevent cache bugs
39-
if (process.env.NODE_ENV === 'development') {
39+
if (process.env.NODE_ENV !== 'production') {
4040
sheet.masterSheet.constructor.reset(true)
4141
}
4242
}

0 commit comments

Comments
 (0)