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
Hi everyone! I'm trying to setup a project with SvelteKit and electron-vite, but i encountered a few problems that i cant solve.
SvelteKit uses "type": "module" in package.json;
The SvelteKit plugin for vite.config compiles to "server" too and because of that "build.target" is not always chrome? or es?, and the renderer build always fail;
For the first problem i tried to use "type": "commonjs" and work on development mode, but the SvelteKit can't compile with type module.
As for the second problem, i tried to use @sveltejs/adapter-static, but even than SvelteKit didn't skip the server build.
Here is my simple project template. The project was create with electron-vite with svelte-ts template.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi everyone! I'm trying to setup a project with SvelteKit and electron-vite, but i encountered a few problems that i cant solve.
For the first problem i tried to use "type": "commonjs" and work on development mode, but the SvelteKit can't compile with type module.
As for the second problem, i tried to use @sveltejs/adapter-static, but even than SvelteKit didn't skip the server build.
Here is my simple project template. The project was create with electron-vite with svelte-ts template.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions