Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do dynamically import SVG with sync? #88

Closed
JackpotM1103 opened this issue Sep 6, 2023 · 1 comment
Closed

How do dynamically import SVG with sync? #88

JackpotM1103 opened this issue Sep 6, 2023 · 1 comment

Comments

@JackpotM1103
Copy link

I refer to #72 (comment) to solve the problem of dynamic import
But this async import method will have a 'loading' problem, does anyone know how to sync dynamic import?

@JackpotM1103 JackpotM1103 changed the title How do dynamically import SVG width sync? How do dynamically import SVG with sync? Sep 6, 2023
@JackpotM1103
Copy link
Author

@#88 (comment)
I've achieved what I want by using Vite's Glob import method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant