Skip to content

Namespace Components are lost on format #722

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

Closed
fallsimply opened this issue Nov 23, 2021 · 2 comments
Closed

Namespace Components are lost on format #722

fallsimply opened this issue Nov 23, 2021 · 2 comments
Labels

Comments

@fallsimply
Copy link

fallsimply commented Nov 23, 2021

After formatting a vue file, namespaced components are replaced with class names. I think emmet is being ran as part of the formatting process

Before

<template>
	<Controls.Button type="link">Open Editor</Controls.Button>
</template>

<script lang="ts" setup>
import Controls from "~/components/Controls"
</script>

After

<template>
	<Controls class="Button" type="link">Open Editor</Controls>
</template>

<script lang="ts" setup>
import Controls from "~/components/Controls"
</script>

Related to #372

@johnsoncodehk
Copy link
Member

This is issue of https://github.com/Prettyhtml/prettyhtml, you can consider to contribute a PR to prettyhtml or move to prettier.

@fallsimply
Copy link
Author

Thanks for the quick response and that fixed the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants