Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
fix: force the optimize for speed flag for styled-jsx to true
Browse files Browse the repository at this point in the history
  • Loading branch information
varl authored Aug 29, 2019
2 parents df0d05c + fe5065c commit 71183c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const optimizeForSpeed = true // process.env.NODE_ENV === 'production'

module.exports = function(api) {
api.cache.forever()

Expand All @@ -20,7 +22,7 @@ module.exports = function(api) {
presets: defaultPresets.concat('@babel/preset-react'),
plugins: [
'@babel/plugin-proposal-class-properties',
'styled-jsx/babel',
['styled-jsx/babel', { optimizeForSpeed }],
],
}
}

0 comments on commit 71183c1

Please sign in to comment.