Skip to content

Conversation

@Timeless0911
Copy link
Contributor

Summary

sync chunk of umd can not be loaded without mounting on scripts

Related Links

Checklist

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

Copy link
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 modifies the UMD format configuration to only split asynchronous chunks, addressing a limitation where synchronous chunks cannot be loaded without being mounted on scripts.

  • Updated splitChunks configuration to only split async chunks for UMD format
  • Added corresponding test snapshots to reflect the configuration change

Reviewed Changes

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

File Description
packages/core/src/config.ts Added splitChunks configuration with chunks: 'async' for UMD format
packages/core/tests/snapshots/config.test.ts.snap Updated test snapshots to reflect the new splitChunks configuration

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@fi3ework fi3ework enabled auto-merge (squash) August 27, 2025 12:02
@fi3ework fi3ework merged commit 1bced60 into main Aug 27, 2025
36 of 39 checks passed
@fi3ework fi3ework deleted the feat/umd-split branch August 27, 2025 12:54
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.

2 participants