Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wemake-services/nuxt-babel
Use normal .babelrc file with your Nuxt app
https://github.com/wemake-services/nuxt-babel
babel babelrc nuxt nuxt-module nuxtjs vue
Last synced: 3 months ago
JSON representation
Use normal .babelrc file with your Nuxt app
- Host: GitHub
- URL: https://github.com/wemake-services/nuxt-babel
- Owner: wemake-services
- License: mit
- Archived: true
- Created: 2018-04-24T18:14:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-06-19T07:19:15.000Z (over 3 years ago)
- Last Synced: 2024-04-13T23:09:46.497Z (8 months ago)
- Topics: babel, babelrc, nuxt, nuxt-module, nuxtjs, vue
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/nuxt-babel
- Size: 974 KB
- Stars: 33
- Watchers: 3
- Forks: 2
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# nuxt-babel
**Deprecated: Nuxt now [supports](https://nuxtjs.org/docs/2.x/configuration-glossary/configuration-build#babel) `babelrc` natively**
[![wemake.services](https://img.shields.io/badge/style-wemake.services-green.svg?label=&logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAALGPC%2FxhBQAAAAFzUkdCAK7OHOkAAAAbUExURQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP%2F%2F%2F5TvxDIAAAAIdFJOUwAjRA8xXANAL%2Bv0SAAAADNJREFUGNNjYCAIOJjRBdBFWMkVQeGzcHAwksJnAPPZGOGAASzPzAEHEGVsLExQwE7YswCb7AFZSF3bbAAAAABJRU5ErkJggg%3D%3D)](http://wemake.services) [![Build Status](https://travis-ci.org/wemake-services/nuxt-babel.svg?branch=master)](https://travis-ci.org/wemake-services/nuxt-babel) [![Coverage Status](https://coveralls.io/repos/github/wemake-services/nuxt-babel/badge.svg?branch=master)](https://coveralls.io/github/wemake-services/nuxt-babel?branch=master)
This plugin allows to have normal `.babelrc` file with your `nuxt` app!
While traditional `nuxt` app
[requires](https://nuxtjs.org/api/configuration-build/#babel)
that you specify all your `babel`
configuration inside the `nuxt.config.js`,
some other tools (like `jest`)
require [the traditional approach](https://babeljs.io/docs/usage/babelrc/)
with `.babelrc`.This plugin gracefully injects your `.babelrc` into your `nuxt` configuration
allowing you to have the best from both worlds.We also support `.babelrc.js`, `babel.config.js`, and `package.json` files.
## Installation
```
npm install --save nuxt-babel
```Add `nuxt-babel` to your `nuxt.config.js`:
```js
{
modules: [
'nuxt-babel',
]
}
```## Options
You can also specify directory containing your `babel` configuration:
```js
{
modules: [
['nuxt-babel', { directory: './some/path/' },
]
}
```## License
MIT.