core
core copied to clipboard
fix(compiler-core): KeepAlive should ignore comments
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 :
thanks.
Deploy Preview for vuejs-coverage failed.
| Name | Link |
|---|---|
| Latest commit | 77f5d447f3baf6dbc781e022435ca50e5d476d5c |
| Latest deploy log | https://app.netlify.com/sites/vuejs-coverage/deploys/62a223332e6a04000831b817 |
@tony19 hi can you re-review my new changes please ? the re-request review button not working...
Comments cannot be ignored directly
https://staging-cn.vuejs.org/api/application.html#app-config-compileroptions
comments need final rendering on dom
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