Skip to content

fix(bundled-dev): respect base for lazy imports (fix #23216) - #23257

Closed
kkkhs wants to merge 1 commit into
vitejs:mainfrom
kkkhs:agent/fix-bundleddev-lazy-base
Closed

kkkhs wants to merge 1 commit into
vitejs:mainfrom
kkkhs:agent/fix-bundleddev-lazy-base

Conversation

@kkkhs

@kkkhs kkkhs commented Aug 14, 2026 •

Copy link
Copy Markdown

What

Fixes #23216. Bundled dev lazy imports ignored non-root base and hit /@vite/lazy.

Fix

Add withBaseForLazyBundlingUrl() to prefix generated lazy URLs before middleware handling.

Test

Added non-root base lazy import regression coverage.

@kkkhs
kkkhs force-pushed the agent/fix-bundleddev-lazy-base branch from d840892 to 08956cb Compare August 14, 2026 00:38
@literalpie

literalpie commented Sep 23, 2026 •

Copy link
Copy Markdown

Hi, can you give an update on why this is still draft, or if there's anything we can do to help move it along? This issue is blocking us from trying out bundleDev

@kkkhs

kkkhs commented Oct 8, 2026

Copy link
Copy Markdown
Author

Thanks for checking in. It is still draft because the branch is now conflicted and the old Build&Test jobs are failing, so I need to update it against current main and re-run the bundledDev coverage before requesting review. No action needed from you at the moment.

@h-a-n-a h-a-n-a self-assigned this Oct 15, 2026
@h-a-n-a h-a-n-a added p3-minor-bug An edge case that only affects very specific usage (priority) feat: bundled-dev labels Oct 15, 2026
@h-a-n-a

h-a-n-a commented Nov 11, 2026

Copy link
Copy Markdown
Member

Thanks for the contribution. This has been resolved in #23798.

@h-a-n-a h-a-n-a closed this Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat: bundled-dev 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.

bundledDev + non-root base: dynamic import requests /@vite/lazy without base → 404

3 participants