🚧 This Plugin Is Depreacted 🚧
This plugin is deprecated in favor of buble-brunch.
bublejs-brunch
Adds support to Brunch to transform ES6 into ES5 with Bublé.
NOTE
See the CHANGELOG for info about the deprecation.
Usage
Installation via npm:
npm i bublejs-brunch -D
Manual install using the GitHub URI in your package.json
:
"bublejs-brunch": "aMarCruz/bublejs-brunch"
Options
In your brunch-config
file you can specify the Bublé options.
... plugins: bublejs: objectAssign: 'assign' // replace 'assign' with your own function target: ie: 10 safari: 9 ...
By default, the plugin set this options:
objectAssign: "Object.assign"
With this, the plugin includes a polyfill in the code generated by Brunch.
If you set this option, even to ""
or "Object assign"
, the plugin does not includes the polyfill.
dangerousForOf: true
Other options, like target
or dangerousTaggedTemplateString
must be set explicitly.
The option modules
is left as false
, so Bublé generates error with the import
and export
keywords because Brunch does not support ES6 modules (yet).
In addition to the Bublé options you can set pattern
and ignore
, both anymatch, to include or ignore files.