jsx语法需要用到babel-preset-react:
通用babel-loader相关如下:
以上配置还只能针对ES6情况,static defaultProps是ES7的特性,需要引入新的配置: