Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sveltekit build doing unnecessary files #12935

Open
vishnuc opened this issue Nov 1, 2024 · 2 comments
Open

sveltekit build doing unnecessary files #12935

vishnuc opened this issue Nov 1, 2024 · 2 comments

Comments

@vishnuc
Copy link

vishnuc commented Nov 1, 2024

Describe the problem

I am trying to build via native svelte and it takes 200 ms to build a static files

 npm run build

> -xtreme@0.0.0 build
> vite build

vite v5.4.10 building for production...
✓ 85 modules transformed.
dist/index.html                  0.46 kB │ gzip: 0.30 kB
dist/assets/index-C89kWIpl.css   0.71 kB │ gzip: 0.33 kB
dist/assets/index-CfAFUTQE.js   18.82 kB │ gzip: 7.51 kB
✓ built in 208ms

Describe the proposed solution

I want to use sveltekit , but when I do the same build , its giving me more than 10 unneccessary js files in the name of modulepreload etc , I used adapter-static.. used fallback files , set export const prerender = true in +layout.js , its building but its building lots of files for server/ too,, how to mimic same building like its done in svelte native in sveltekit.

Importance

would make my life easier

@benmccann benmccann transferred this issue from sveltejs/svelte Nov 2, 2024
@doongjohn
Copy link

Is this issue dup of this? #9703 (comment)

@eltigerchino
Copy link
Member

Can you provide a minimal reproduction in the form of a repository? Which exact files are you not expecting in the build output? The server files are needed by SvelteKit as part of the prerendering process. These are stored temporarily in .svelte-kit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants