nanxiaobei / antd-img-crop

🗡 An image cropper for Ant Design Upload
MIT License
497 stars 156 forks source link

cjs broken in 4.2.6 #203

Closed MadCcc closed 1 year ago

MadCcc commented 1 year ago

Reproduction: https://codesandbox.io/s/shang-chuan-qian-cai-qie-tu-pian-antd-4-23-5-forked-6rg8sl?file=/index.test.js

See error in test tab.

And it works in 4.2.5: https://codesandbox.io/s/shang-chuan-qian-cai-qie-tu-pian-antd-4-23-5-forked-h8uhdj?file=/demo.js

nanxiaobei commented 1 year ago

Please try 4.2.7.

MadCcc commented 1 year ago

Still not work: https://codesandbox.io/s/shang-chuan-qian-cai-qie-tu-pian-antd-4-23-5-forked-6rg8sl?file=/index.test.js

afc163 commented 1 year ago

https://github.com/ant-design/ant-design/actions/runs/3263630742/jobs/5362970044

nanxiaobei commented 1 year ago

Fixed in 4.2.8.

It's because upgraded to rollup 3.0, and the CommonJS export of antd LocaleReceiver seems incompatible with it.