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

动态 import() 的 chunkName 为空, 导致构建异常 #5837

Closed
wssgcg1213 opened this issue Jan 30, 2023 · 0 comments
Closed

动态 import() 的 chunkName 为空, 导致构建异常 #5837

wssgcg1213 opened this issue Jan 30, 2023 · 0 comments
Assignees
Labels

Comments

@wssgcg1213
Copy link
Collaborator

Describe the bug

最小复现代码

import('vconsole').then(() => {}); // ...

原因是 AssetsManifestPlugin 中 pages[chunkName.replace(/^p_/, '')] = chunkFiles; 未判断 chunkName 为空的情况 (动态值时)

Expected behavior

构建不报错

Actual behavior

No response

Version of ice.js

3

Content of build.json or ice.config.mts

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants