From 32000207846f3da2a3c80669fe219eca022b1683 Mon Sep 17 00:00:00 2001 From: Adam Ramberg Date: Mon, 19 Aug 2019 21:33:08 +0200 Subject: [PATCH] Remove unnecessary spread operator MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Nicolò Ribaudo --- packages/babel-preset-env/src/normalize-options.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/babel-preset-env/src/normalize-options.js b/packages/babel-preset-env/src/normalize-options.js index 368ee68ce12f..523857ea5832 100644 --- a/packages/babel-preset-env/src/normalize-options.js +++ b/packages/babel-preset-env/src/normalize-options.js @@ -32,7 +32,7 @@ const validateTopLevelOptions = (options: Options) => { } }; -const allPluginsList = [...Object.keys(pluginsList)]; +const allPluginsList = Object.keys(pluginsList); // NOTE: Since module plugins are handled seperatly compared to other plugins (via the "modules" option) it // should only be possible to exclude and not include module plugins, otherwise it's possible that preset-env