1.0.4 • Published 5 years ago

@bundl/babel v1.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

@bundl/babel

Babel plugin for Bundl.

Installation

# npm
npm i -D @bundl/babel
# yarn
yarn add -D @bundl/babel

Usage

With babel.config.js

const babel = require('@bundl/babel') 

module.exports = {
  output: {
    'build/bundle.js': {
      use: babel(),
      input: 'src/**.js'
    }
  }
}

Custom options

const babel = require('@bundl/babel') 

module.exports = {
  output: {
    'build/bundle.js': {
      use: babel({
        presets: ['@babel/preset-env']
      }),
      input: {
        'src/**.js': true
      }
    }
  }
}