Open mpeterdev opened 1 month ago
Could this be implemented as a LightningCSS Custom Transform similar to how we handle TS imports via our Babel plugin?
We could fetch the external stylesheet and inject all the rules under the top level .wrapper
class of the component. One issue that comes to mind is handling the waterfall effect of importing a stylesheet which imports another and so on
Description
Many UI packages and libraries require importing an external stylesheet. We should support this as much as possible while maintaining component area of influence boundaries.