Need to add "transform-react-jsx-source" in below config, so that can use broswer to debug it.
"env": {
"development": {
"plugins": [
"transform-react-jsx-source",
]
}
}
Need to add related plugins so that babel can run well, pay attention to "transform-runtime"
"plugins": [
"add-module-exports",
"transform-runtime",
"transform-decorators-legacy",
"transform-class-properties",
"es6-promise"
],
.babelrc