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:
parent
6330a152ce
commit
7d8932b6be
@ -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"),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user