babel-preset-kdjs
v2.0.0
Published
Babel preset for NKDuy projects.
Downloads
2
Readme
babel-preset-kdjs
Babel preset for NKDuy projects.
Install
$ npm install --save-dev babel-preset-kdjs
Basic Usage
Via .babelrc
.babelrc
{
"presets": ["kdjs"]
}
Via CLI
$ babel script.js --presets kdjs
Via Node API
require('babel-core').transform('code', {
presets: ['kdjs']
});
Advanced Usage
require('babel-core').transform('code', {
presets: [
require('babel-preset-kdjs/configure')({
autoImport: true,
inlineRequires: false,
rewriteModules: {},
stripDEV: false
}
]
});