Closed murithigeo closed 1 month ago
I will check it later. There is a svelte exapmle, which is also created by create-svelte
. I just try it and it worked correctly. I think maybe there are some break changes in create-svelte.
I've checked and it happens when the module is SSRd.
I'm sorry to say the plugin is just cannot work on sveltekit
now. This plugin is using transformIndexHtml
hook, but refer to the vite document, the hook could not work on sveltekit. I will keep this issue open, maybe I can find a solution in the future.
This hook won't be called if you are using a framework that has custom handling of entry files (for example SvelteKit).
I add an example for svelte-kit: https://github.com/s3xysteak/vite-plugin-cesium-build/tree/main/examples/svelte-kit It looks good to me. If you still have any problem, feel free to reopen the issue!
I'm getting a ReferenceError: module is not defined on a pure create-svelte install.