gaearon / gaearon/react-transform
Production
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 68
- Fork
- 2
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.