Open dravenww opened 3 years ago
https://github.com/ant-design/ant-design-mobile/issues/3784
antd内部混用require和import导致
解决:
https://vitejs.dev/config/#build-commonjsoptions
code:
build: { commonjsOptions: { transformMixedEsModules: true } }
https://github.com/ant-design/ant-design-mobile/issues/3784
antd内部混用require和import导致