@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'],
})