mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1577] [Feature]: Add an explicit Vite manual chunk policy for framework and vendor code #816
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#816
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 @Xelvanis on GitHub (May 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1577
Originally assigned to: @cha1latte on GitHub.
What problem does this solve?
vite.config.tscurrently has nobuild.rollupOptions.output.manualChunkspolicy. After feature-level eager imports are cleaned up, the startup bundle may still be noisy because framework and vendor modules are grouped into the entry chunk by default.Current startup entry vendor contributors include:
@dnd-kit/core;Without an explicit chunk policy, the warning remains ambient and it is harder to tell whether a future warning is framework cost, feature leakage, or a real regression.
Proposed behavior
Define a small, intentional manual chunk policy in
vite.config.tsafter the eager feature import fixes are handled.The policy should prefer stable, cache-friendly groups instead of many tiny chunks. Candidate groups:
Also decide whether to document or raise
build.chunkSizeWarningLimitonly after the remaining large chunks are intentional.Expected owner or impact area
Refactor branch considerations
This should not change product behavior. Keep the chunk policy boring and reviewable; avoid using
chunkSizeWarningLimitalone as the fix unless maintainers explicitly decide the current bundle shape is acceptable.Acceptance checks:
pnpm buildpasses.Alternatives considered
Raising
chunkSizeWarningLimitfirst would quiet the warning but would not improve cacheability or make future feature leakage visible.Additional context
This is one implementation slice under #1532 and should probably come after the startup import and background autonomous slices.
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@cha1latte commented on GitHub (May 29, 2026):
Triage note: labeling this as
scope-riskbecause a manual chunk policy affects framework/vendor loading behavior and can create brittle bundle boundaries if chosen only to silence warnings.A good next step is to measure current contributors and choose a durable policy before adding manual chunks.
@cha1latte commented on GitHub (May 31, 2026):
closed in #1756