Bo
Bo
@kekee000 take a look at this?
> If you use a blocking function it will surely block. > > Maybe you could instead run the blocking code to fetch the module asynchronously and then pass it...
@saghul BTW, I tried `import()` in txiki.js, and it also blocked: ``` setInterval(() => { console.log(~~(Date.now() / 1000) % 100) }, 1000) // a simple http server that won't finish...
It seems to have been implemented indeed.
There is a dynamic import example at https://github.com/meowtec/vite-plugin-svg-sprite/blob/main/examples/vite-svg-sprite-example/src/components/Dynamic.vue#L33 and it works.
@slemvs Of course you could not see any sprite file (the bundled *.svg) in dist, they are all compiled to `.js` files. After the js executed in browser, it will...
BTW I think this plugin is unrelated to react / vue, or ant other frameworks.
If you can not see any icon in your page, you can provide your source code (as simple as possible) through .zip file or a new repo.
@smoliymaryan89 I see you put all your icons into `assets/sprite.svg`, is is not encouraged. You should split it to multiple files: one file one icon. ```xml // arrow.svg ``` ```xml...
> @meowtec thanks for the answer, in my understanding sprite is when you keep all the icons in one file and get them by id This is what `vite-plugin-svg-sprite` does...