JSPM

babel-preset-build-engine

2.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q37984F
  • License MIT

Collection of babel presets & plugins, following our styleguide

Package Exports

  • babel-preset-build-engine

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (babel-preset-build-engine) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

babel-preset-build-engine

Collection of Babel presets and plugins for all the development environments

Installation

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

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

Note: If you installed ESLint globally (using the -g flag) then you must also install babel-preset-build-engine globally.

Usage

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

For Nodejs

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

For React with transform-runtime

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

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

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

For Webpack & transform-runtime & enabled the Tree shaking

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

License

MIT