Socket
Socket
Sign inDemoInstall

@vue/cli-plugin-babel

Package Overview
Dependencies
Maintainers
3
Versions
159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vue/cli-plugin-babel

babel plugin for vue-cli


Version published
Maintainers
3
Created

What is @vue/cli-plugin-babel?

@vue/cli-plugin-babel is a plugin for Vue CLI that enables Babel integration. Babel is a JavaScript compiler that allows you to use next-generation JavaScript, including ES6/ES7 features, by transforming it into a version of JavaScript that is compatible with current and older browsers. This plugin simplifies the process of setting up Babel in a Vue.js project.

What are @vue/cli-plugin-babel's main functionalities?

Transpile ES6/ES7 to ES5

This feature allows you to transpile modern JavaScript (ES6/ES7) to ES5, making your code compatible with older browsers. The preset configuration provided by @vue/cli-plugin-babel includes necessary plugins and settings to achieve this.

{"presets":["@vue/cli-plugin-babel/preset"]}

Custom Babel Configuration

You can customize the Babel configuration by adding your own presets and plugins. This example shows how to add the `@babel/plugin-proposal-class-properties` plugin to support class properties syntax.

{"presets":["@vue/cli-plugin-babel/preset"],"plugins":["@babel/plugin-proposal-class-properties"]}

Polyfills

This feature allows you to include polyfills for new JavaScript features that are not supported in older environments. By setting `useBuiltIns` to `entry` and specifying `corejs: 3`, you can ensure that necessary polyfills are included based on your usage.

{"presets":[["@vue/cli-plugin-babel/preset",{"useBuiltIns":"entry","corejs":3}]]}

Other packages similar to @vue/cli-plugin-babel

Keywords

FAQs

Package last updated on 07 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc