bubleuptranspiles ESnext code
with the power ofRollup and Buble .
$ bubleup
# is the same as
$ bubleup src/index.js -o index.js
$ npm install -g bubleup
For full CLI usage please run bubleup -h
, It's hard to describe some options in command line, so you can also configure them in package.json, eg:
{
"bubleup": {
"entry": "./path/to/my-entry.js"
}
}
This is some feature which is similar to Webpack's alias
, eg:
{
"bubleup": {
"alias": {
"controllers": "./src/controllers"
}
}
}
This helps you import some file from the CDN (as using AMD), or set an alias to an external file, see more details in Rollup's WIKI .
import bubleup from 'bubleup' bubleup(options).catch(e => console.log(e.stack))
MIT ©EGOIST