From 7d8932b6be4f2a8850ac329a53547a8f0d696023 Mon Sep 17 00:00:00 2001 From: Daniel Lo Nigro Date: Mon, 27 Nov 2017 10:08:28 -0800 Subject: [PATCH] Add comment to babel-standalone to dissuade removal of whitelist (#6910) There was a good discussion on https://github.com/babel/babel/pull/6177. Linking to it in the code to preserve the comments. --- packages/babel-standalone/src/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/babel-standalone/src/index.js b/packages/babel-standalone/src/index.js index c6feee3e44..93de8e6a22 100644 --- a/packages/babel-standalone/src/index.js +++ b/packages/babel-standalone/src/index.js @@ -137,6 +137,8 @@ export function registerPresets(newPresets) { } // All the plugins we should bundle +// Want to get rid of this long whitelist of plugins? +// Wait! Please read https://github.com/babel/babel/pull/6177 first. registerPlugins({ "check-constants": require("@babel/plugin-check-constants"), "external-helpers": require("@babel/plugin-external-helpers"), @@ -208,6 +210,8 @@ registerPlugins({ }); // All the presets we should bundle +// Want to get rid of this whitelist of presets? +// Wait! Please read https://github.com/babel/babel/pull/6177 first. registerPresets({ es2015: require("@babel/preset-es2015"), es2016: require("@babel/preset-es2016"),