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

adapter-static generates unused js chunks when csr=false #9703

Open
sparrowsl opened this issue Apr 18, 2023 · 2 comments
Open

adapter-static generates unused js chunks when csr=false #9703

sparrowsl opened this issue Apr 18, 2023 · 2 comments

Comments

@sparrowsl
Copy link

Describe the bug

Even when csr=false I still get the js bundle chunks in the final build.
If I delete the files, the site will still work, but it is annoying if I have to delete the files everytime before I send the final build to someone.

Reproduction

  • Create any basic project,
  • disable the csr in +layout
  • run build
  • check the final build folder, it should be there

Logs

No response

System Info

@sveltejs/kit@1.15.7
@sveltejs/adapter-static@2.0.0

Severity

annoyance

Additional Information

No response

@sparrowsl sparrowsl changed the title adapter-static generates js chunks when csr=false adapter-static generates unused js chunks when csr=false Apr 22, 2023
@doongjohn
Copy link

Is there any update on this issue?

@sparrowsl
Copy link
Author

just tested it on:

{
  "@sveltejs/adapter-static": "3.0.6"
  "@sveltejs/kit": "2.7.3"
  "@sveltejs/vite-plugin-svelte": "4.0.0",
  "svelte": "5.1.9",
  "vite": "5.4.10"
}

and it's still the same with

export const csr = false;
export const prerender = true;

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