Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support configuration for different environments. #51

Closed
yavorsky opened this issue Feb 23, 2017 · 2 comments
Closed

Support configuration for different environments. #51

yavorsky opened this issue Feb 23, 2017 · 2 comments

Comments

@yavorsky
Copy link
Member

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
Copy link
Contributor

denysdovhan commented Mar 16, 2017

May cause conflicts with #54.

@yavorsky
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants