storybook-vue / storybook-nuxt

Deprecated in favor of https://github.com/nuxt-modules/storybook/
https://github.com/nuxt-modules/storybook/
132 stars 20 forks source link

fix: vite vue plugin order #105

Closed philip-hartmann closed 5 months ago

philip-hartmann commented 6 months ago

@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: #4

philip-hartmann commented 5 months ago

@chakAs3 Please review.

tobiasdiez commented 5 months ago

Thanks a lot for your contribution. I've now merged it in https://github.com/nuxt-modules/storybook/pull/631.