2.0.0 • Published 6 years ago

babel-preset-sxt-engine v2.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

babel-preset-sxt-engine v2.0.0

Collection of Babel presets and plugins for all the development environments

Installation

You'll install babel-preset-sxt-engine:

$ npm install babel-preset-sxt-engine --save-dev

Usage

Add sxt-engine to the plugins section of your .babelrc configuration file. You can omit the babel-preset- prefix:

For Nodejs

{
    "presets": [
        "sxt-engine"
    ]
}

For flowjs

{
    "presets": [
        "sxt-engine/flow"
    ]
}

For React with transform-runtime

{
    "presets": [
        "sxt-engine/react"
    ]
}

For Webpack with React & transform-runtime & enabled the Tree shaking

{
    "presets": [
        "sxt-engine/reactWebpack"
    ]
}

For Webpack & transform-runtime & enabled the Tree shaking

{
    "presets": [
        "sxt-engine/webpack"
    ]
}

License

MIT