hopp-plugin-babel

1.2.1 • Public • Published

hopp-plugin-babel

Use babel with hopp.

NPM

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.

Dependents (0)

Package Sidebar

Install

npm i hopp-plugin-babel

Homepage

hoppjs.com/

Weekly Downloads

3

Version

1.2.1

License

MIT

Last publish

Collaborators

  • karimsa