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: fix order of vite vue plugin #631

Merged
merged 5 commits into from
Jun 1, 2024

Conversation

tobiasdiez
Copy link
Collaborator

@vitejs/plugin-vue should be the first registered user plugin so that it will be added directly after Vite's core plugins and transforms global vue compoments before nuxt:components:imports. The transform stack order can be reviewed with the vite-plugin-inspect plugin.

This fixes the use of global components in projects or modules.
Fixes storybook-vue/storybook-nuxt#4.

philip-hartmann and others added 5 commits June 1, 2024 12:33
`@vitejs/plugin-vue` should be the first registered user plugin so that it will be added directly after Vite's core plugins and transforms global vue compoments before nuxt:components:imports. The transform stack order can be reviewed with the `vite-plugin-inspect` plugin.

This fixes the use of global components in projects or modules.

Refs: nuxt-modules#4
Copy link

netlify bot commented Jun 1, 2024

👷 Deploy request for nuxt-storybook pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit cd8c574

@tobiasdiez tobiasdiez merged commit 53b7e34 into nuxt-modules:main Jun 1, 2024
10 checks passed
@tobiasdiez tobiasdiez deleted the global-comp branch June 1, 2024 04:56
@Ibochkarev
Copy link

@tobiasdiez How can you test these changes?

@itslewin
Copy link

itslewin commented Jun 3, 2024

@chakAs3 Please release a new version, there are so many essential bug fixes included by now

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

Successfully merging this pull request may close these issues.

components global:true results in: At least one <template> or <script> is required in a single file component
4 participants