10.0.0-alpha.0 • Published 6 years ago

poi-plugin-buble v10.0.0-alpha.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

poi-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

Table of Contents

pluginBuble

Use Buble to transpile JS files

Parameters

  • options Object
    • options.asyncAwait Boolean Enable async/await support via nodent (optional, default true)
    • options.bubleOptions Object Options for buble. If this option is set, it will be assigned to default buble options.

License

MIT © EGOIST