From 4a252b9d82d576d5e4b88be8aa5f4d9e4726568d Mon Sep 17 00:00:00 2001 From: Farfurix Date: Wed, 29 Aug 2018 09:29:56 +0300 Subject: [PATCH] use `for...of` transform for client scripts --- package.json | 1 + src/client/.babelrc | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 0cdee323ab5..824148f7957 100644 --- a/package.json +++ b/package.json @@ -124,6 +124,7 @@ "@types/chai": "^3.5.2", "babel-eslint": "^7.1.1", "babel-plugin-add-module-exports": "^0.2.0", + "babel-plugin-transform-for-of-as-array": "^1.1.1", "basic-auth": "^1.1.0", "body-parser": "^1.17.1", "broken-link-checker": "^0.7.0", diff --git a/src/client/.babelrc b/src/client/.babelrc index c1e2c3a3347..6461c77e42e 100644 --- a/src/client/.babelrc +++ b/src/client/.babelrc @@ -4,6 +4,7 @@ ["env", { "loose": true }] ], "plugins": [ - "add-module-exports" + "add-module-exports", + "transform-for-of-as-array" ] }