sveltejs/kit

`manualChunks` is not working on `2.17.2`

クローズ

#13,496 opened on 2025/02/23

 (2 件のコメント) (2 件のリアクション) (0 人の担当者)JavaScript (1,719 件のフォーク)batch import
bughelp wanted

Repository metrics

Stars
 (17,446 個のスター)
PR merge metrics
 (平均マージ 17d 22h) (30d で 184 merged PRs)

説明

Describe the bug

Recently I updated @sveltejs/kit from 2.16.1 to 2.17.2 on a website that used manualChunks to reduce the number of generated chunks and group code by concern.

The result is the following build:

Image

Note that named chunks are on the server and hashed chunks on the client.

Reproduction

Run pnpm build and see the generated client chunks on .svelte-kit/output/client/_app/immutable/chunks

https://stackblitz.com/edit/sveltejs-kit-template-default-gbsyrknf?description=The%20default%20SvelteKit%20template,%20generated%20with%20create-svelte&file=package.json,vite.config.js&title=SvelteKit%20Default%20Template

Logs

System Info

Does not matter

Severity

annoyance

Additional Information

No response

コントリビューターガイド