Skip to content

Commit

Permalink
Dev: Optimize bundles for for-of loops being over arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Jun 11, 2019
1 parent 3d15f9a commit 3660178
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ function getBabelOptions() {
presets: [
'@babel/preset-env',
'@babel/preset-react'
],
plugins: [
// All `for (... of ...) ...` loops are over arrays
['@babel/plugin-transform-for-of', {assumeArray: true}]
]
};
}

0 comments on commit 3660178

Please sign in to comment.