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.
This commit is contained in:
Daniel Lo Nigro 2017-11-27 10:08:28 -08:00 committed by GitHub
parent 6330a152ce
commit 7d8932b6be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,6 +137,8 @@ export function registerPresets(newPresets) {
} }
// All the plugins we should bundle // 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({ registerPlugins({
"check-constants": require("@babel/plugin-check-constants"), "check-constants": require("@babel/plugin-check-constants"),
"external-helpers": require("@babel/plugin-external-helpers"), "external-helpers": require("@babel/plugin-external-helpers"),
@ -208,6 +210,8 @@ registerPlugins({
}); });
// All the presets we should bundle // 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({ registerPresets({
es2015: require("@babel/preset-es2015"), es2015: require("@babel/preset-es2015"),
es2016: require("@babel/preset-es2016"), es2016: require("@babel/preset-es2016"),