We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.2.37
https://stackblitz.com/edit/vitejs-vite-9bf2b5
Check vite.config.ts, you will find that template.compilerOptions.whitespace: 'preserve' is set.
vite.config.ts
template.compilerOptions.whitespace: 'preserve'
Then look at App.vue and the output.
App.vue
I is my understanding that with whitespace: 'preserve' the output should be
whitespace: 'preserve'
or at least it should be easily possible to change the template so that it is.
The output is
and I have found no obvious way to get the desired output.
I have tried
<span>
<slot> </slot>
 
StackBlitz
I believe the whitespace: 'preserve' functionality was added in #1600.
The text was updated successfully, but these errors were encountered:
It is inconsistent with vue2, see https://codesandbox.io/s/beautiful-tom-6zem3d?file=/src/App.vue
Sorry, something went wrong.
Is this the same issue? #7542 @edison1105
@baiwusanyu-c No, this one is about preserving whitespace.
Successfully merging a pull request may close this issue.
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: