metalsmith-buble
Bublé plugin for Metalsmith
Installation
npm install metalsmith-buble
Usage
CLI
Add the metalsmith-buble
field to your metalsmith.json
.
"plugins": "metalsmith-buble": "transforms": "modules": false "dangerousForOf": true "sourceMap": "inline"
API
const Metalsmith = ;const buble = ; './source';
Options
All Bublé options are available except for file
and source
that will be automatically set.
In addition the following option is supported:
options.sourceMap
Value: true
, false
or 'inline'
Default: false
true
generates a separate source map file with.map
extension, for exmaplescript.js.map
along withscript.js
.'inline'
appends an inline source map to the transformed file.
License
ISC License © 2017 Shinnosuke Watanabe