# @vue/cli-plugin-babel

> babel plugin for vue-cli

Latest version **5.0.9** (published 2025-08-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @vue/cli-plugin-babel
pnpm add @vue/cli-plugin-babel
yarn add @vue/cli-plugin-babel
bun add @vue/cli-plugin-babel
```

## Health

**Score 30/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities; popular repo.

Warnings: low downloads; no types; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 5.0.9 |
| Published | 2025-08-21 |
| First published | 2018-01-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 11.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 29540 |
| Author | Evan You |
| Maintainers | akryum, yyx990803, soda |
| Keywords | vue, cli, babel |

## Links

- npm: https://www.npmjs.com/package/@vue/cli-plugin-babel
- Repository: https://github.com/vuejs/vue-cli
- Homepage: https://github.com/vuejs/vue-cli/tree/dev/packages/@vue/cli-plugin-babel#readme
- Issues: https://github.com/vuejs/vue-cli/issues
- npm.io page: https://npm.io/package/@vue/cli-plugin-babel

## Dependencies (6)

- [webpack](https://npm.io/package/webpack.md) ^5.54.0
- [@babel/core](https://npm.io/package/@babel/core.md) ^7.12.16
- [babel-loader](https://npm.io/package/babel-loader.md) ^8.2.2
- [thread-loader](https://npm.io/package/thread-loader.md) ^3.0.0
- [@vue/babel-preset-app](https://npm.io/package/@vue/babel-preset-app.md) ^5.0.9
- [@vue/cli-shared-utils](https://npm.io/package/@vue/cli-shared-utils.md) ^5.0.9

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 5.0.9 (latest) — 2025-08-21
- 5.0.6 (next) — 2022-06-16
- 5.0.8 — 2022-07-07
- 5.0.7 — 2022-07-05
- 4.5.19 — 2022-06-28
- 4.5.18 — 2022-06-16
- 5.0.5 — 2022-06-16
- 4.5.17 — 2022-03-23
- 5.0.4 — 2022-03-22
- 4.5.16 — 2022-03-15
- 5.0.3 — 2022-03-15
- 5.0.2 — 2022-03-15
- 5.0.1 — 2022-02-17
- 5.0.0 — 2022-02-17
- 5.0.0-rc.3 — 2022-02-10
- … 145 more at https://npm.io/package/@vue/cli-plugin-babel/versions

## README

# @vue/cli-plugin-babel

> babel plugin for vue-cli

## Configuration

Uses Babel 7 + `babel-loader` + [@vue/babel-preset-app](https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/babel-preset-app) by default, but can be configured via `babel.config.js` to use any other Babel presets or plugins.

By default, `babel-loader` excludes files inside `node_modules` dependencies. If you wish to explicitly transpile a dependency module, you will need to add it to the `transpileDependencies` option in `vue.config.js`:

``` js
module.exports = {
  transpileDependencies: [
    // can be string or regex
    'my-dep',
    /other-dep/
  ]
}
```

## Caching

Cache options of [babel-loader](https://github.com/babel/babel-loader#options) is enabled by default and cache is stored in `<projectRoot>/node_modules/.cache/babel-loader`.

## Parallelization

[thread-loader](https://github.com/webpack-contrib/thread-loader) is enabled by default when the machine has more than 1 CPU cores. This can be turned off by setting `parallel: false` in `vue.config.js`.

`parallel` should be set to `false` when using Babel in combination with non-serializable loader options, such as regexes, dates and functions. These options would not be passed correctly to `babel-loader` which may lead to unexpected errors.

## Installing in an Already Created Project

```bash
vue add babel
```

## Injected webpack-chain Rules

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

---
_Source: https://npm.io/package/@vue/cli-plugin-babel · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
