Skip to content

sveltekit build doing unnecessary files #12935

@vishnuc

Description

@vishnuc

Describe the problem

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

 npm run build

> [email protected] 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions