Skip to content

How to use this with vite glob improt #47

Discussion options

You must be logged in to vote

Re: Glob import: Since that’s a Vite feature (not specific to svelte-retag), you can just infer it from here
https://vitejs.dev/guide/features#glob-import. I’m on the fence about going too far documenting that up front given I also have plans to eventually support <svelte:options …/> parsing so that would make that maybe a bit redundant, see: #44.

IMHO @baseplate-admin this isn’t documentation issue per se; it’s kind of a hack still. The core issue right now with auto-defining all your components this way is that you’re still importing every single component on every single page (even if it is clode-split), unless you break up your entry points to make sense with whatever page you’re on. …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by patricknelson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants