Skip to content

[lib mode] name confliction when using dynamic imports #8120

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

Closed
7 tasks done
pd4d10 opened this issue May 11, 2022 · 0 comments · Fixed by #7190
Closed
7 tasks done

[lib mode] name confliction when using dynamic imports #8120

pd4d10 opened this issue May 11, 2022 · 0 comments · Fixed by #7190

Comments

@pd4d10
Copy link
Contributor

pd4d10 commented May 11, 2022

Describe the bug

If multiple formats are specified in the lib mode, the dynamic imports chunk names would be the same and be unexpectedly overrode.

For more information, see the reproduction link below: Both es and cjs builds emit a file named dist/utils.js.

Reproduction

https://stackblitz.com/edit/vitejs-vite-egee8a

System Info

Not related

Used Package Manager

npm

Logs

No response

Validations

@github-actions github-actions bot locked and limited conversation to collaborators May 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant