From fb06d0b20d9a39acf3c5da0863b283bf9ba2fee4 Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Tue, 20 Aug 2019 16:28:17 +0300 Subject: [PATCH] Switch all 'for..of' loops to assume they iterating only arrays (#2099) --- .babelrc.js | 1 + 1 file changed, 1 insertion(+) diff --git a/.babelrc.js b/.babelrc.js index 4af2b5dae4..32c0360eac 100644 --- a/.babelrc.js +++ b/.babelrc.js @@ -6,6 +6,7 @@ module.exports = { ['@babel/plugin-transform-classes', { loose: true }], ['@babel/plugin-transform-destructuring', { loose: true }], ['@babel/plugin-transform-spread', { loose: true }], + ['@babel/plugin-transform-for-of', { assumeArray: true }], ], env: { cjs: {