hopp-plugin-babel
v1.2.1
Published
Use babel with hopp.
Downloads
24
Maintainers
Readme
hopp-plugin-babel
Use babel with hopp.
Usage
Setup babel the way you usually do (create a .babelrc, install presets, blah blah).
This plugin exposes a single function, .babel()
which takes an options object and passes
it forwards to babel.
Sample:
import hopp from 'hopp'
export default
hopp([ 'src/*.js' ])
// the options object is optional and will
// be passed directly to babel
.babel({
presets: [
'env'
]
})
.dest('dist')
License
Licensed under MIT license.
Copyright © 2017 10244872 Canada Inc.