Skip to content

fix: disable split chunks for umd and iife output format#1378

Merged
Timeless0911 merged 2 commits intomainfrom
split-chunks-umd-iife
Dec 4, 2025
Merged

fix: disable split chunks for umd and iife output format#1378
Timeless0911 merged 2 commits intomainfrom
split-chunks-umd-iife

Conversation

@Timeless0911
Copy link
Copy Markdown
Contributor

@Timeless0911 Timeless0911 commented Dec 4, 2025

Summary

When building libraries in UMD or IIFE format with code splitting enabled, the output generates multiple chunks that can cause runtime issues when consumed by upstream applications.

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings December 4, 2025 08:02
@Timeless0911 Timeless0911 changed the title fix: do not split chunks in umd/iife format fix: disable split chunks for umd and iife output format Dec 4, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes chunk splitting configuration for UMD and IIFE output formats by completely disabling splitChunks, which is more appropriate given that these formats have asyncChunks disabled.

Key changes:

  • Changed UMD format from splitChunks: { chunks: 'async' } to splitChunks: false
  • Added splitChunks: false configuration to IIFE format (previously not configured)
  • Updated test snapshots to reflect the new configuration

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
packages/core/src/config.ts Updated splitChunks configuration for UMD format from { chunks: 'async' } to false, and added splitChunks: false to IIFE format configuration
packages/core/tests/snapshots/config.test.ts.snap Updated test snapshots to reflect the new splitChunks configuration for UMD and IIFE formats across multiple test cases

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Timeless0911 Timeless0911 merged commit d90f7de into main Dec 4, 2025
17 checks passed
@Timeless0911 Timeless0911 deleted the split-chunks-umd-iife branch December 4, 2025 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants