Vue Babel Preset App

Posted on  by admin

This is the default Babel preset used in all Vue CLI projects.

Options

Note: this preset is meant to be used exclusively in projects created via Vue CLI and does not consider external use cases. preset-env automatically determines the transforms and polyfills to apply based on your browser target.

See Browser Compatibility section in docs for more details. auto set to 'commonjs' in Jest tests. targets:by default @babel/preset-env will use browserslist config sources (browserslist key in package.json file is recommend) unless either the targets or ignoreBrowserslistConfig options are set.set to { node: 'current' } when running unit tests in Node.js.

152 Versions

by default @babel/preset-env will use browserslist config sources (browserslist key in package.json file is recommend) unless either the targets or ignoreBrowserslistConfig options are set.

Current Tags

set to { node: 'current' } when running unit tests in Node.js. Includes Promise polyfill by default so that they are usable even in non-transpiled dependencies (only for environments that need it).

Only the following stage 3 or below features are supported (object rest spread is supported as part of preset-env):. If you need additional stage 3 or below features, you need to install and configure it yourself. transform-runtime avoids inlining helpers in every file.

Included Features

@babel/preset-env

  • config.rule('js')
  • config.rule('js').use('babel-loader')