Open zvitek opened 1 year ago
Hey @zvitek 👋
Sorry for the delay on a reply here. I played around with your repro case and was able to confirm there is something goofy going on for the production build. Looks like in prod builds when the external component library gets pulled into the repro library, Stencil (deliberately) doesn't load/apply the styles associated with those loaded components. Didn't dig into the reasoning behind that just yet. But, for the time being, I'm going to get this labeled to get ingested into our backlog so we can do some more discovery on what is going on here.
We'll post any updates here once we start looking into this. Thanks again for letting us know!
Prerequisites
Stencil Version
3.0.0
Current Behavior
I am writing one component with the following configuration.
I have a definition in the component style itself.
During development everything is fine and styles are generated in the component.
When I build the component, the styles do not appear after the component is generated.
They are clogged in the component chunk itself.
Expected Behavior
I expect the same behavior as in the dev environment. The component will generate the styles it is assigned.
System Info
Steps to Reproduce
Code Reproduction URL
https://github.com/zvitek/webcomponent-styles
Additional Information