hood / vite-plugin-shadow-style

A Vite plugin to inject css styles into the shadow root of web components.
18 stars 3 forks source link

Add Vue example #4

Closed anatolykopyl closed 4 months ago

anatolykopyl commented 10 months ago

I'm trying to get this working with Vue, but can't figure out how, since the entry file is so different. All I get is a runtime error:

Uncaught ReferenceError: SHADOW_STYLE is not defined
hood commented 10 months ago

Could you please provide me with a link to a repository containing a repro? I’d have to do some guesswork to figure out your scenario, and I’m not sure that would lead to useful help from me.

anatolykopyl commented 10 months ago

Sure! I'm trying like this: https://github.com/anatolykopyl/vue-shadow-style-repro

hood commented 10 months ago

I’ve just tried building the project, and it built with no issues. Where were you getting the error message mentioned above?

anatolykopyl commented 10 months ago

I got the message in the browser console when running in dev mode.

hood commented 9 months ago

Hi, I just wanted to let you know I’m still looking into this, I’m just not getting the chance of having too much spare time to work on this lately, but it’ll definitely get addressed.

hood commented 4 months ago

https://github.com/hood/vite-plugin-shadow-style/issues/5#issuecomment-1913770214