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

fix(scanner): duplicate modules for same id if glob is used in html-like types #16305

Merged
merged 1 commit into from Mar 29, 2024

Conversation

sapphi-red
Copy link
Member

@sapphi-red sapphi-red commented Mar 29, 2024

Description

When await happens in the scriptRE.exec(raw) loop, a different function might overwrite scriptRE.lastIndex causing duplicate modules to be loaded as a same id.

fixes #16211

@sapphi-red sapphi-red added p3-minor-bug An edge case that only affects very specific usage (priority) feat: deps optimizer Esbuild Dependencies Optimization labels Mar 29, 2024
Copy link

stackblitz bot commented Mar 29, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@patak-dev patak-dev enabled auto-merge (squash) March 29, 2024 08:43
@patak-dev patak-dev merged commit eca68fa into vitejs:main Mar 29, 2024
11 checks passed
@sapphi-red sapphi-red deleted the fix/scanner-duplicate-modules branch March 29, 2024 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat: deps optimizer Esbuild Dependencies Optimization p3-minor-bug An edge case that only affects very specific usage (priority)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ambiguous import "..." has multiple matching exports
2 participants