Whitespace preserve does not work #7789
Labels
🔨 p3-minor-bug
Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.
🐞 bug
Something isn't working
scope: compiler
Vue version
3.2.37
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-9bf2b5
Steps to reproduce
Check
vite.config.ts
, you will find thattemplate.compilerOptions.whitespace: 'preserve'
is set.Then look at
App.vue
and the output.What is expected?
I is my understanding that with
whitespace: 'preserve'
the output should beor at least it should be easily possible to change the template so that it is.
What is actually happening?
The output is
and I have found no obvious way to get the desired output.
I have tried
<span>
with a space in it<slot> </slot>
with a space in it (found that on StackOverflow) 
after the span<span>
(which wouldn't be the desired result anyway but it doesn't change the output at all)System Info
Any additional comments?
I believe the
whitespace: 'preserve'
functionality was added in #1600.The text was updated successfully, but these errors were encountered: