dudulaopo833 / Tools-Learning

各种杂七杂八-错误处理等
0 stars 0 forks source link

Babel #11

Open dudulaopo833 opened 7 years ago

dudulaopo833 commented 7 years ago

.babelrc

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" ],