node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »

babel-preset-insilico-react-app

babel-preset-insilico-react-app

Build Status

Babel preset for React Apps created at Insilico

Create a file named .babelrc with following contents in the root folder of your project:

{
  "presets": ["insilico-react-app"]
}

You can send options along, that will be passed directly to babel-preset-env: https://github.com/babel/babel-preset-env.

{
   "presets": [
        [
          "insilico-react-app",
          {
            "modules": "commonjs"
          }
        ]
      ]
}

By default modules (import/export) will not be transformed. If you need to that, you can either pass the relevant option or set the MODULES environment variable.

Valid vaules: "amd" | "umd" | "systemjs" | "commonjs" | false.