https://github.com/seebigs/bundl-pack-babel
https://github.com/seebigs/bundl-pack-babel
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/seebigs/bundl-pack-babel
- Owner: seebigs
- Created: 2017-02-02T07:07:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-11-01T16:05:44.000Z (over 7 years ago)
- Last Synced: 2025-03-05T07:23:56.736Z (over 1 year ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bundl-pack-babel
*Transpile ES6 code with [bundl-pack](https://github.com/seebigs/bundl-pack)*
> Learn more at [babeljs.io](https://babeljs.io/docs/usage/api/)
## Install
```
$ npm install --save-dev bundl-pack-babel
```
## Use
```js
var Bundl = require('bundl');
var pack = require('bundl-pack');
var write = require('bundl-write');
var babelProcessor = require('bundl-pack-babel');
new Bundl('entry.js')
.then(pack({
js: {
processor: babelProcessor,
presets: ['es2015'] // uses "latest" if you do not specify
}
}))
.then(write())
.go();
```