Replies: 1 comment 4 replies
-
Look the for the transformPageChunk here |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Currently, I am trying to use SvelteKit with Import Maps for a micro frontend architecture. Besides Vite hating Import Maps, I managed to get it working in Vite and SvelteKit. My current approach is a Vite plugin that resolves the import to its URLs in the Import Map.
My problem now is that I have the import Map in two places. Once in the app.html and once in the vite.config.ts. I tried to use the
transformIndexHtml
method in the Vite plugin, but it seems that in a SvelteKit app, this method is not used for the app.html. Then I tried to create a Svelte preprocessor, but there you cannot alter the app.html either.Is there any way that I can dynamically change the app.html to dynamically insert my Import Map?
Beta Was this translation helpful? Give feedback.
All reactions