mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +00:00
feat(babel-preset-app): add bugfixes
option (#7144)
This commit is contained in:
parent
318aad2aed
commit
728ab8841b
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user