Skip to content
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

fix(vite): inline styles for vue components with lang="ts" #26912

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

danielroe
Copy link
Member

🔗 Linked issue

resolves #26514

📚 Description

The issue here was that we were processing the following module IDs:

[
  './nuxt/nuxt/playground/pages/index.vue',
  './nuxt/nuxt/playground/components/SomeComp.vue?vue&type=script&setup=true&lang.ts',
  './nuxt/nuxt/playground/components/SomeComp.vue?vue&type=style&index=0&lang.css',
  './nuxt/nuxt/playground/pages/index.vue'
]

But at runtime the following ID was tracked: ./nuxt/nuxt/playground/components/SomeComp.vue.

We can ensure this is tracked correctly by stripping the query at this point in the inline styles.

Copy link

stackblitz bot commented Apr 23, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

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

Successfully merging this pull request may close these issues.

inlineStyles don't work! script lang="ts"
1 participant