feat(babel-preset-app): add bugfixes option (#7144)

This commit is contained in:
Xin Du (Clark) 2020-03-30 10:48:59 +01:00 committed by GitHub
parent 318aad2aed
commit 728ab8841b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -45,6 +45,7 @@ Below is a list of all available `options` parameters:
### Options
* **bugfixes** - [`@babel/preset-env`](https://babeljs.io/docs/en/babel-preset-env#bugfixes)
* **configPath** - [`@babel/preset-env` parameter](https://babeljs.io/docs/en/babel-preset-env#configpath)
* **forceAllTransforms** - '[@babel/preset-env](https://babeljs.io/docs/en/babel-preset-env#forcealltransforms)' parameter
* **debug**, default `false` - '[@babel/preset-env](https://babeljs.io/docs/en/babel-preset-env#debug)' parameter

View File

@ -55,6 +55,7 @@ module.exports = (api, options = {}) => {
const envName = api.env()
const {
bugfixes,
polyfills: userPolyfills,
loose = false,
debug = false,
@ -111,6 +112,7 @@ module.exports = (api, options = {}) => {
// Pass options along to babel-preset-env
presets.push([
require('@babel/preset-env'), {
bugfixes,
spec,
loose,
debug,