-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
Pug templates fail if the first line has indentation #7594
Comments
Hello @Tumulte. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
You can duplicate your setup in a stackblitz project, which should work too |
Just a random guess because someone else had an issue with that as well, |
I’ve only tried it as a local devDependency :) |
Okay, then please setup a reproducible so we can try investigate and debug it |
It’s already done ;) but I only edited the original issue without commenting |
So the only "reference" to vite/packages/plugin-vue/src/template.ts Line 149 in 8b21029
I wanted to add |
For reference, linking the Vue core issue that @btea added in the PR: vuejs/core#3842 |
Closing, as @sodatea said, this should be solved upstream. There is nothing actionable in core in this issue |
Describe the bug
Pug templates fail if the first line has indentation, meaning, this works :
and this doesn’t
(the error is
unexpected token indent
)Is it possible to allow users to make the choice they prefer ? It made my webpack->vite migration a chore :)
(reproduction : just install pug and try an SFC with lang="pug")
Reproduction
stackblitz
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: