mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[GH-ISSUE #540] Vite 8: deprecated config options cause build warnings #113
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#113
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Divkix on GitHub (Mar 15, 2026).
Original GitHub issue: https://github.com/cloudflare/vinext/issues/540
Description
After upgrading to vinext 0.0.30 with Vite 8.0.0, the build produces warnings about deprecated config options:
Exact Location
The deprecated options are defined in
packages/vinext/src/index.ts:Line 493-496 -
experimentalMinChunkSize:Line 523-526 -
treeshake.preset:These configs are applied in multiple places:
packages/vinext/src/cli.tslines 390-391 (CLI builds)Root Cause
Vite 8 uses Rolldown instead of Rollup. These options are Rollup-specific:
experimentalMinChunkSize- This was a Rollup feature, removed in Vite 8/Rolldown. Rolldown handles chunk merging differently.treeshake.preset- This was a Rollup treeshake option. In Vite 8 with Rolldown, treeshake configuration should usebuild.rolldownOptions.treeshakeinstead.Suggested Fix
Based on Vite 8 migration docs, the fix options are:
build.rolldownOptions.treeshakeExample fix for treeshake:
For
experimentalMinChunkSize- this feature may need to be reimplemented differently or removed if Rolldown handles it automatically.Impact
Environment