9.2.0 • Published 6 years ago

poi-preset-buble v9.2.0

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

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 {})
    • 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

9.2.0

6 years ago

9.0.1

7 years ago

9.0.0

7 years ago

9.0.0-rc.1

7 years ago

8.0.1

7 years ago

8.0.0

7 years ago

8.0.0-rc.4

7 years ago

8.0.0-rc.3

7 years ago

8.0.0-rc.1

7 years ago

7.3.0

7 years ago