Skip to content

Commit

Permalink
Merge pull request #3797 from JedWatson/babel-transform-optimisations
Browse files Browse the repository at this point in the history
Enable Babel loose mode to improve bundle size
  • Loading branch information
JedWatson authored Oct 7, 2019
2 parents 3c7de0d + edb18dd commit 3750783
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/spicy-ads-poke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'react-select': patch
---

Enable Babel loose mode to improve bundle size
11 changes: 9 additions & 2 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
module.exports = {
plugins: ['emotion', '@babel/plugin-proposal-class-properties'],
presets: ['@babel/preset-env', '@babel/preset-react', '@babel/preset-flow'],
plugins: [
'emotion',
['@babel/plugin-proposal-class-properties', { loose: true }],
],
presets: [
['@babel/preset-env', { loose: true }],
'@babel/preset-react',
'@babel/preset-flow',
],
};

0 comments on commit 3750783

Please sign in to comment.