You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to integrate a rust wasm-pack generated WASM module with Svelte Kit. Everything works fine in dev. This is meant to be a SPA, so I have disabled SSR in svelte.config.js. It's only when building that I get an error. I do have the fallback option set, as well.
Reproduction
Start a new empty SvelteKit project
Copy the following svelte config file svelte.config.js
importadapterfrom"@sveltejs/adapter-static";importpreprocessfrom"svelte-preprocess";/** @type {import('@sveltejs/kit').Config} */constconfig={// Consult https://github.com/sveltejs/svelte-preprocess// for more information about preprocessorspreprocess: [preprocess({postcss: true,}),],kit: {ssr: false,adapter: adapter({fallback: "index.html"}),// hydrate the <div id="svelte"> element in src/app.htmltarget: "#svelte",vite: {resolve: {alias: {$wasm: "/src/lib/wasm/pkg",},},},},};exportdefaultconfig;
Describe the bug
I am trying to integrate a rust wasm-pack generated WASM module with Svelte Kit. Everything works fine in dev. This is meant to be a SPA, so I have disabled SSR in
svelte.config.js
. It's only when building that I get an error. I do have thefallback
option set, as well.Reproduction
svelte.config.js
/src/lib
wasm
folder/src/routes/__layout.svelte
npm run build
Logs
System Info
Severity
blocking all usage of SvelteKit
Additional Information
No response
The text was updated successfully, but these errors were encountered: