ts-loader用于TypeScript 加载器,将 TypeScript(ES6) 编译成 JavaScript(es6)。而Typescript没有做polyfills,所以要编译成ES5依旧得要babel-loader。而且babel-loader编译速度更快
import引入报”Critical dependency: the request of a dependency is an expression“
因为新版的Antd使用了React的hooks,表单中的字段校验方法进行了一些修改,原来的回调方法改成了返回一个Promise对象。