@skpm/babel-preset
v0.2.6
Published
A babel preset for transforming your JavaScript for skpm
Downloads
460
Readme
@skpm/babel-preset
A babel preset for transforming your JavaScript for Sketch.
Install
$ npm install --save-dev @skpm/babel-preset
Usage
Via .babelrc
(Recommended)
.babelrc
{
"presets": ["@skpm/babel-preset"]
}
Via CLI
$ babel script.js --presets @skpm/babel-preset
Via Node API
require('babel-core').transform('code', {
presets: ['@skpm/babel-preset'],
})