1.0.4 • Published 5 years ago
@bundl/babel v1.0.4
@bundl/babel
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
}
}
}
}