gaearon / gaearon/react-transform
Production
- Dominant language
- No language data
- Stars
- 68
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I have a transform used in production, let's say a sentry reporter.
I am getting this error _'File/Program node, we can't possibly find a statement parent to this'._
in my babelrc for production i use :
``` javascript
"env": {
"production": {
"optional": [
"optimisation.react.constantElements",
"optimisation.react.inlineElements",
],
"plugins": ["react-transform"],
"extra": {
"react-transform": {
"transforms": [{
"transform": "./react-transform-sentry-errors",
"imports": ["react","raven-js"],
"locals": ["'https://sentry@dns"]
}]
}
}
},
"development": {
"plugins": ["react-transform"],
"extra": {
"react-transform": {
"transforms": [
{
"transform": "react-transform-hmr",
"imports": ["react"],
"locals": ["module"]
},
{
"transform": "react-transform-catch-errors",
"imports": ["react", "redbox-react"]
},
]
}
}
}
```
if i remove _"optimisation.react.constantElements"_ the webpack build is ok.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.