-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
class and style merging
conflict with vue.template.compilerOptions.whitespace preserve
#9285
Comments
if I remove config whitespace: 'preserve', |
the root cause is: @memsenpai |
@edison1105 it still works fine in vue 2, where \n will be converted to whitespace, and despite the comment at the top, style and class extend still works fine. Are you sure this is expected behavior and not a bug? |
@memsenpai |
Vue version
3.3.4
Link to minimal reproduction
https://stackblitz.com/edit/github-gjgfy8
Steps to reproduce
Vite 4.4.9
set option compilerOptions.whitespace = "preserve"
What is expected?
option compilerOptions.whitespace and style and merging work correctly
What is actually happening?
if we leave a comment before the first element in the template
style and class merging do not work
System Info
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: