Closed yavorsky closed 7 years ago
Currently, with .babelrc you can use the env option to set specific options when in a certain environment:
.babelrc
env
{ "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.
transform-react-constant-elements
I'll work on this.
May cause conflicts with #54.
@denysdovhan why? we just need to support .babelrc (.babelrc.js for Babel 7)
Currently, with
.babelrc
you can use theenv
option to set specific options when in a certain environment:will use preset-es2015 for all envs and add
transform-react-constant-elements
just for prod.I'll work on this.