metalsmith-babel
Babel plugin for Metalsmith
Installation
npm install metalsmith-babel
And ensure the requisite Babel plugins are installed.
Usage
CLI
Add the metalsmith-babel
field to your metalsmith.json
.
"plugins": "metalsmith-babel": "presets": "@babel/preset-env"
API
const Metalsmith = ;const babel = ; const babelOptions = presets: 'env'; './source';
Options
All @babel/core
options are available except for filename
and filenameRelative
that will be automatically set.
License
ISC License © 2017 - 2018 Shinnosuke Watanabe