babel / babel-brunch

Brunch plugin for Babel
ISC License
69 stars 38 forks source link

Support configuration for different environments. #51

Closed yavorsky closed 7 years ago

yavorsky commented 7 years ago

Currently, with .babelrc you can use the env option to set specific options when in a certain environment:

{
  "env": {
    "production": {
      "plugins": ["transform-react-constant-elements"]
    }
  },
  "presets": ["es2015"]
}

will use preset-es2015 for all envs and add transform-react-constant-elements just for prod.

I'll work on this.

denysdovhan commented 7 years ago

May cause conflicts with #54.

yavorsky commented 7 years ago

@denysdovhan why? we just need to support .babelrc (.babelrc.js for Babel 7)