Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: import动态导入静态资源未识别,当成三方包了 #5788

Closed
xiejun-net opened this issue May 30, 2024 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@xiejun-net
Copy link

Version

"@modern-js/module-tools": "2.51.0",

Details

const icon = await import(@/img/plan/${item.path}.png);
代码打包出来后是
const icon = yield import(@/img/plan/${item.path}.png);

静态资源没有打包进来

Reproduce link

参考以上说明

Reproduce Steps

参考以上说明

@xiejun-net xiejun-net added the bug Something isn't working label May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant