Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Commit

Permalink
perf(rollup): Reduce bundled size
Browse files Browse the repository at this point in the history
Wasnt removing babel helpers from output. Changed rollup and babel config to remove them. This
dropped the build size from 14.41KB to 12.64KB. Modest but every little bit helps.
  • Loading branch information
Aidurber committed Jul 9, 2018
1 parent aaf62c6 commit 267e8fa
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@
}
]
],

"env": {
"production": {
"plugins": [["react-remove-properties", { "properties": ["data-test"] }]]
"plugins": [
["react-remove-properties", { "properties": ["data-test"] }],
"external-helpers"
]
},
"test": {
"presets": ["es2015", "react"]
Expand Down
Loading

0 comments on commit 267e8fa

Please sign in to comment.