shenme

Results 6 comments of shenme

我也遇见这个问题了 ``` export default { cjs: { type: 'babel', minify: true, lazy: true, }, esm: 'babel', extraExternals: [ 'react', 'react-dom', /^@babel\/runtime/, ], extraBabelPlugins: [ [ 'import', { libraryName: 'antd', libraryDirectory:...

我用的是dumi 里自带的 father-build

https://gitee.com/uixepm/dumi.git @PeachScript 可改变.fatherrc.ts中disableTypeCheck的值分别打包yarn build 我的机器是 ![image](https://user-images.githubusercontent.com/22339560/123910088-88f08b00-d9ac-11eb-8cbb-2a4829713a0c.png)

> > 因为 models 名取自 `target.constructor.name`. JS 一压缩就没了. > > 正解! 这里有啥好的解决办法吗