alibaba / ice

🚀 ice.js: The Progressive App Framework Based On React(基于 React 的渐进式应用框架)
https://ice.work
MIT License
17.83k stars 2.09k forks source link

和hox搭配使用报错 #6792

Open LesilyMaple opened 8 months ago

LesilyMaple commented 8 months ago

Describe the bug

和hox这个库搭配使用在特定场景下会有问题,详情见:https://github.com/umijs/hox/issues/114#issuecomment-1933218205

Expected behavior

可以输出正常的构建产物

Actual behavior

No response

Version of ice.js

3.4.3

Content of build.json or ice.config.mts

No response

Additional context

No response

ClarkXia commented 7 months ago

image 目前 swc 编译的确存在这个问题,可以先尝试绕过,我们也将给 swc 提一个 issue,同时也会关注下框架层面能不能直接处理这个情况