Merged
Conversation
Co-authored-by: ushironoko <30229874+ushironoko@users.noreply.github.com>
Co-authored-by: ushironoko <30229874+ushironoko@users.noreply.github.com>
Co-authored-by: ushironoko <30229874+ushironoko@users.noreply.github.com>
Co-authored-by: ushironoko <30229874+ushironoko@users.noreply.github.com>
Co-authored-by: ushironoko <30229874+ushironoko@users.noreply.github.com>
Co-authored-by: ushironoko <30229874+ushironoko@users.noreply.github.com>
Co-authored-by: ushironoko <30229874+ushironoko@users.noreply.github.com>
Co-authored-by: ushironoko <30229874+ushironoko@users.noreply.github.com>
Co-authored-by: Jevon617 <25676701+Jevon617@users.noreply.github.com>
Co-authored-by: Jevon617 <25676701+Jevon617@users.noreply.github.com>
Co-authored-by: liangmiQwQ <121547620+liangmiQwQ@users.noreply.github.com>
96dd02e to
5218f9c
Compare
This was referenced Apr 20, 2026
Contributor
|
Thank you, that helps a lot ❤️ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR improves compiler compatibility by incorporating and adapting compatibility fixes from several upstream PRs:
The changes focus on Vue compiler output parity, tokenizer/parser correctness, SFC malformed block diagnostics, and regression coverage through snapshots.
Changes
Compiler compatibility
<slot :name="tab.key" />.v-ifbranches.v-ifbranches compatible with script setup bindings.nullin runtime type arrays.v-ifArmature parser/tokenizer
CdataInHtmlContentfor CDATA in HTML content.SFC parser diagnostics
MALFORMED_BLOCKfor malformed SFC blocks instead of silently skipping them.>, including script/style/custom blocks.Tests
Verified with:
mise exec -- vp run --workspace-root fmt:allmise exec -- vp run --workspace-root clippymise exec -- vp run --workspace-root testmise exec -- vp run --workspace-root bench:quickmise exec -- vp run --workspace-root test:playgroundLatest quick benchmark result:
@vue/compiler-sfcPlayground headless Chromium tests passed:
Notes
The playground still prints the existing Vue compiler warning: