Closed
Description
I need to import 1 css file into javascript and use my css content directly in Javascript (this makes it possible for me to get the CSS string and create 1 element style straight into shadowDom without sideEffect):
import a from 'external-lib/bundle.css';
console.log(a);
I need this, because the customElements not work correctly, see: sveltejs/svelte#3594
I need to create 1 customElement, where it will import 1 .css file from an external lib. But, this have a problem, this plugin not work with import a .css file to a string.
Because customElement totally isolates my component, there is no other way to import these external styles without having any side effects. The only way I got anything like this was this:
<style>
@import '/external-file/lib.css';
</style>
The workround cause sideEffect, because flick my app when loading the css.
Metadata
Metadata
Assignees
Labels
No labels