@poi/plugin-buble
v10.1.0
Published
Use buble to compile js files
Downloads
5
Readme
plugin-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/plugin-buble --dev
Usage
// poi.config.js
module.exports = {
plugins: [
require('@poi/plugin-buble')(/* options */)
]
}
Default Buble options:
{
transforms: {
dangerousForOf: true,
generator: false,
modules: false
},
objectAssign: 'Object.assign'
}
API
options
options.asyncAwait
Transform async/await
to pure Promise
using nodent.