poi-preset-buble
v9.2.0
Published
Use buble to compile js files
Downloads
2
Readme
poi-preset-buble
Use buble instead of babel to transpile .js
.es6
and script tag in .vue
files
ES2017 -> buble -> nodent for async/await -> ES5
Install
yarn add poi-preset-buble --dev
Usage
// poi.config.js
module.exports = {
presets: [
require('poi-preset-buble')(/* options */)
]
}
Default Buble options:
{
transforms: {
dangerousForOf: true,
generator: false,
modules: false
},
objectAssign: 'Object.assign'
}
API
presetBuble
Use Buble to transpile JS files
Parameters
options
Object (optional, default{}
)
License
MIT © EGOIST