# @svel/cli-plugin-babel

> babel plugin for svelte-cli

Latest version **0.5.0** (published 2019-05-30) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.0 |
| Published | 2019-05-30 |
| First published | 2019-04-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 6.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Evan You |
| Maintainers | wmzy |
| Keywords | svelte, cli, babel |

## Links

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

## Dependencies (5)

- [webpack](https://npm.io/package/webpack.md) >=4 < 4.29
- [@babel/core](https://npm.io/package/@babel/core.md) ^7.0.0
- [babel-loader](https://npm.io/package/babel-loader.md) ^8.0.5
- [@svel/babel-preset-app](https://npm.io/package/@svel/babel-preset-app.md) ^0.5.0
- [@svel/cli-shared-utils](https://npm.io/package/@svel/cli-shared-utils.md) ^0.5.0

## 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

- 0.5.0 (latest) — 2019-05-30
- 0.4.0 — 2019-05-29
- 0.3.0 — 2019-05-24
- 0.2.1 — 2019-05-14
- 0.2.0 — 2019-05-09
- 0.1.2 — 2019-04-30

## README

# @svel/cli-plugin-babel

> babel plugin for svelte-cli

## Configuration

Uses Babel 7 + `babel-loader` + [@svel/babel-preset-app](https://github.com/wmzy/svelte-cli/tree/dev/packages/%40svel/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 `svelte.config.js`:

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

## Caching

[cache-loader](https://github.com/webpack-contrib/cache-loader) 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 `svelte.config.js`.

## Installing in an Already Created Project

``` sh
vue add @svel/babel
```

## Injected webpack-chain Rules

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

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