-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
Labels
i: questionoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issue
Description
Issue originally made by @flying-sheep
Bug information
- Babel version: 6.4.0
- Node version: 5.4.1
- npm version: 3.5.3
Options
Hi, in [[ https://github.com/rackt/react-redux/pull/256#issuecomment-172897156 | this bug ]], i discovered that
# the env option is not very intuitive
# the docs don’t explain it
# it seems to be impossible to have both plugins and presets active in every env and some that are only in a specific one
i’d like to have as little repetition as possible, so i expect the following .babelrc to basically mean
> use the presets **stage-0** and **react** and the plugin **transform-decorators-legacy**.
>
> if $BABEL_ENV or $NODE_ENV are set to “buildmodule”, additionally use the preset **es2015-loose-rollup**
>
> if $BABEL_ENV and $NODE_ENV are unset or one is set to “development”, additionally use the preset **es2015-loose**
but this doesn’t seem to be the case. see the linked github issue for what other combinations didn’t work as expected
Input code
{
"env": {
"development": {
"presets": ["es2015-loose"]
},
"buildmodule": {
"presets": ["es2015-loose-rollup"]
}
},
"presets": ["stage-0", "react"],
"plugins": ["transform-decorators-legacy"]
}
Description
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
i: questionoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issue