Skip to content

fix(vite 7): upgrade es-module-lexer - #24180

Closed
pei711 wants to merge 1 commit into
vitejs:v7from
pei711:fix-24147-es-module-lexer-v7
Closed

pei711 wants to merge 1 commit into
vitejs:v7from
pei711:fix-24147-es-module-lexer-v7

Conversation

@pei711

@pei711 pei711 commented Nov 22, 2026

Copy link
Copy Markdown

Vite 7.3.8 uses es-module-lexer 1.7.0, which misparses valid division by an identifier named of inside a for header when the module also contains a dynamic import. This makes production builds fail for valid JavaScript.

Upgrade Vite's dependency to ^2.3.2 and update the pnpm lockfile. The 1.7.0 lock entry remains for Vitest's own dependency.

Verified with pnpm --filter vite run build and the issue's three-file reproduction, which now completes with Vite 7.3.8.

Fixes #24147

@netlify

netlify Bot commented Nov 22, 2026

Copy link
Copy Markdown

👷 Deploy request for vite-docs-v7 pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 382414d

@github-actions github-actions Bot added the bot: likely Likely a bot, LLM, or agent. Automatically comments and closes the issue or PR label Nov 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR has been automatically flagged as likely to be created by a bot, LLM, or agent, and will be automatically closed. These contributions harm the maintenance of the project. Please read our AI policy for more information.

If you believe this is a mistake, please reply to this comment and we will review it.

@github-actions github-actions Bot closed this Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot: likely Likely a bot, LLM, or agent. Automatically comments and closes the issue or PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant