Skip to content

fix(cli): warn when object-form manualChunks is detected#1046

Open
kazupon wants to merge 3 commits intovoidzero-dev:mainfrom
kazupon:fix/900
Open

fix(cli): warn when object-form manualChunks is detected#1046
kazupon wants to merge 3 commits intovoidzero-dev:mainfrom
kazupon:fix/900

Conversation

@kazupon
Copy link
Collaborator

@kazupon kazupon commented Mar 19, 2026

resolve #900

@netlify
Copy link

netlify bot commented Mar 19, 2026

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit ce97828
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/69bbfbbc067afe000805013e

@kazupon kazupon marked this pull request as ready for review March 19, 2026 13:37
try {
const { resolveConfig } = await import('../index.js');
const { checkManualChunksCompat } = await import('./compat.js');
const config = await resolveConfig({ root: rootDir, logLevel: 'silent' }, 'build');
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, logLevel: 'silent' not propagated to Rolldown during config bundling

When calling resolveConfig({ logLevel: 'silent' }), the logLevel is passed to loadConfigFromFile but is not forwarded to bundleConfigFilerolldown(). This means Rolldown still prints UNRESOLVED_IMPORT warnings to stderr even when silent mode is requested, in the migration.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we create an issue for rolldown as a follow-up? This won't block our current fix here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vp migrate: Rolldown requires function-form manualChunks (object form causes build failure)

2 participants