diff --git a/babel-preset/index.js b/babel-preset/index.js index 1d0fbca22c0e00..8dfd26f5b7bfc7 100644 --- a/babel-preset/index.js +++ b/babel-preset/index.js @@ -23,7 +23,7 @@ module.exports = { 'transform-react-display-name', 'transform-react-jsx', 'transform-regenerator', - 'transform-es2015-for-of', + ['transform-es2015-for-of', { loose: true }], ], retainLines: true, sourceMaps: false,