poi-preset-buble
Use buble to compile js files
Last updated 3 years ago by rem .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install poi-preset-buble 
SYNC missed versions from official npm registry.

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

Current Tags

  • 9.2.0                                ...           latest (3 years ago)
  • 9.0.0-rc.1                                ...           next (3 years ago)

10 Versions

  • 9.2.0                                ...           3 years ago
  • 9.0.1                                ...           3 years ago
  • 9.0.0                                ...           3 years ago
  • 9.0.0-rc.1                                ...           3 years ago
  • 8.0.1                                ...           3 years ago
  • 8.0.0                                ...           4 years ago
  • 8.0.0-rc.4                                ...           4 years ago
  • 8.0.0-rc.3                                ...           4 years ago
  • 8.0.0-rc.1                                ...           4 years ago
  • 7.3.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |