unplugin / unplugin-vue-ce

🍒 A vue plugin that extends vue's Custom Element capabilities
MIT License
75 stars 3 forks source link

[BUG] - Sub components style tags not added in Storybook #133

Closed Rensvl closed 5 months ago

Rensvl commented 5 months ago

Describe the bug

Hi,

Subcomponent styling werkt zoals verwacht in de vite dev server, maar helaas als ik het via Storybook run, loop ik tegen issues aan.

The sub web component styling works as expected in the vite dev server. In the reproduction example has the sub component a blue background, but when the same web component is running in storybook the blue background doesn’t appear.

Could you please check if it can also be made functional in Storybook?

Thanks in advance.

Result in Storybook:

Storybook

Result in Vite dev server

Vite dev server

Reproduction

https://codesandbox.io/p/devbox/great-shamir-whcvsl?file=%2Fpackage.json

System Info

No response

Used Package Manager

npm

Validations

baiwusanyu-c commented 5 months ago

image This is because the module ID of vue in the storybook environment has changed, causing the code compilation to fail. I will update the code later.

Rensvl commented 5 months ago

Thanks for updating the code