sveltejs/kit

`manualChunks` is not working on `2.17.2`

已關閉

#13,496 建立於 2025年2月23日

 (2 則留言) (2 個反應) (0 位負責人)JavaScript (1,719 個分叉)batch import
bughelp wanted

倉庫指標

星標
 (17,446 顆星)
PR 合併指標
 (平均合併 17天 22小時) (30 天內合併 184 個 PR)

描述

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

貢獻者指南