babel-preset-kdjs

2.0.0 • Public • Published

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
    }
  ]
});

Readme

Keywords

none

Package Sidebar

Install

npm i babel-preset-kdjs

Weekly Downloads

0

Version

2.0.0

License

BSD-3-Clause

Unpacked Size

19.3 kB

Total Files

9

Last publish

Collaborators

  • nkduy