-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
fix(compiler-core): KeepAlive should ignore comments #6026
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
base: main
Are you sure you want to change the base?
Conversation
node children should not be overwritten to keep comments in the build output
❌ Deploy Preview for vuejs-coverage failed.
|
@tony19 hi can you re-review my new changes please ? the re-request review button not working... |
packages/compiler-core/__tests__/transforms/transformElement.spec.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for the updates!
Comments cannot be ignored directly |
https://staging-cn.vuejs.org/api/application.html#app-config-compileroptions comments need final rendering on dom |
yeah comments should be rendered on the dom and the same problem exists for other built-in components too like Transition ,Suspense and etc . i dont know if it is a bug or not. but if it is, i think the fix for that should be submitted in another pr , this one is to just fix the warning issue with the compiler |
KeepAlive does not ignore comments and the compiler throws an error when a component and a comment are wrapped with KeepAlive, which is obviously a bug.
error reproduction :
sfc.vuejs.org
thanks.