Skip to content

Commit

Permalink
[core] Use babel-plugin-optimize-react
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Jun 5, 2019
1 parent b185d46 commit 70cd82b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ module.exports = {
presets: defaultPresets.concat(['@babel/preset-react']),
plugins: [
'babel-plugin-optimize-clsx',
'babel-plugin-optimize-react',
['@babel/plugin-proposal-class-properties', { loose: true }],
['@babel/plugin-proposal-object-rest-spread', { loose: true }],
'@babel/plugin-transform-runtime',
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
"babel-plugin-istanbul": "^5.0.0",
"babel-plugin-module-resolver": "^3.0.0",
"babel-plugin-optimize-clsx": "^2.1.0",
"babel-plugin-optimize-react": "^0.0.4",
"babel-plugin-preval": "^2.0.0",
"babel-plugin-react-remove-properties": "^0.3.0",
"babel-plugin-tester": "^5.5.1",
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3076,6 +3076,11 @@ babel-plugin-optimize-clsx@^2.1.0:
"@babel/types" "^7.4.4"
lodash "^4.17.11"

babel-plugin-optimize-react@^0.0.4:
version "0.0.4"
resolved "https://registry.yarnpkg.com/babel-plugin-optimize-react/-/babel-plugin-optimize-react-0.0.4.tgz#6326ac8f0f77e3fa3e8195b4d998287d47877c65"
integrity sha512-I3o7GW66dIpXraND0ZAYXEDQ/wOiuefUQqn1PZZcub2flREANb2NXejL52iTMUWtKM++lu5OasVtZewn+WvkNg==

babel-plugin-preval@^2.0.0:
version "2.0.1"
resolved "https://registry.yarnpkg.com/babel-plugin-preval/-/babel-plugin-preval-2.0.1.tgz#76a552a1670bb21307f80b927b89fbeb37cf205c"
Expand Down

0 comments on commit 70cd82b

Please sign in to comment.