-
Thanks for your great work! @lisonge Here is my problem: I have a function that hooks However, when I added Svelte to my project, I noticed that the hook action slowed down, possibly due to the extra compilation required by Svelte. Consequently, my hook became ineffective, and it runs after the When I run the production script by Any help will be appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
there is a compilation cache in vite. When the second visit, there should be no need to compile can you show me example vite project ? or maybe you can use // main.ts
do_hook();
import(`./App.svelte`); |
Beta Was this translation helpful? Give feedback.
there is a compilation cache in vite. When the second visit, there should be no need to compile
can you show me example vite project ?
or maybe you can use
dynamic import