@bundl/babel

Babel plugin for Bundl

Usage no npm install needed!

<script type="module">
  import bundlBabel from 'https://cdn.skypack.dev/@bundl/babel';
</script>

README

@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
      }
    }
  }
}