Add to preset-env ES3 transforms for ES3 targets (#9781)

* add to preset-env ES3 transforms for ES3 targets

* add `transform-reserved-words`

* fix `transform-reserved-words` plugin in `@babel/standalone`
This commit is contained in:
Denis Pushkarev
2019-03-31 05:25:12 +07:00
committed by Nicolò Ribaudo
parent 1f5444e96a
commit ae9b25ac69
63 changed files with 222 additions and 50 deletions

View File

@@ -77,6 +77,7 @@ import transformReactJsxCompat from "@babel/plugin-transform-react-jsx-compat";
import transformReactJsxSelf from "@babel/plugin-transform-react-jsx-self";
import transformReactJsxSource from "@babel/plugin-transform-react-jsx-source";
import transformRegenerator from "@babel/plugin-transform-regenerator";
import transformReservedWords from "@babel/plugin-transform-reserved-words";
import transformRuntime from "@babel/plugin-transform-runtime";
import transformShorthandProperties from "@babel/plugin-transform-shorthand-properties";
import transformSpread from "@babel/plugin-transform-spread";
@@ -162,6 +163,7 @@ export {
transformReactJsxSelf,
transformReactJsxSource,
transformRegenerator,
transformReservedWords,
transformRuntime,
transformShorthandProperties,
transformSpread,
@@ -248,6 +250,7 @@ export const all = {
"transform-react-jsx-self": transformReactJsxSelf,
"transform-react-jsx-source": transformReactJsxSource,
"transform-regenerator": transformRegenerator,
"transform-reserved-words": transformReservedWords,
"transform-runtime": transformRuntime,
"transform-shorthand-properties": transformShorthandProperties,
"transform-spread": transformSpread,