-
-
Notifications
You must be signed in to change notification settings - Fork 6.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
Pug support #17
Comments
I tried to add the parameter: |
@zzetao PR welcome! |
Hmm not working for me with <template lang="pug">
div test
</template>
|
The following should work <template lang="pug">
div test
</template> Also, you don't need |
Not a big deal I believe but I'm sure in Vue 2 you were able to use Pug with leading whitespace(s). Is the difference between them coming from |
This is a behavior change in Vue 3's SFC compiler. Preserving the raw indent avoids the extra cost of de-indenting which can be costly when source map is enabled.
|
Small bug: |
You can use And I think the problem is not about vite, it's about @vue/compiler-sfc instead. Maybe @yyx990803 should clarify. |
For those who come here via Google, As of |
does it effect performance and/or bundle size on production build? |
In theory, it shouldn't. But I imagine sourcemaps might be affected. |
With a fresh
|
Same here:
EDIT: Actually, this was resolved by uninstalling @seanaye if its still an issue for you, give that a shot. |
Is there anyway to write templates with pug language?
npm i pug pug-plain-loader
didn't worked for myself.The text was updated successfully, but these errors were encountered: