Skip to content

Conversation

@Timeless0911
Copy link
Contributor

Summary

only force split async chunks when format is esm or cjs

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 fixes the splitChunks configuration by only forcing async chunk splitting when the output format is ESM or CommonJS, rather than applying it globally to all formats.

  • Moves splitChunks: { chunks: 'async' } from global configuration to format-specific configurations
  • Adds the configuration to both ESM and CommonJS format handlers
  • Removes the global setting that was previously applied to all formats

Reviewed Changes

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

File Description
packages/core/src/config.ts Moves splitChunks configuration from global to format-specific (ESM/CJS) sections
packages/core/tests/snapshots/config.test.ts.snap Updates test snapshots to reflect the new configuration placement

@fi3ework fi3ework merged commit bf45cf6 into main Aug 6, 2025
15 checks passed
@fi3ework fi3ework deleted the fix/chunk branch August 6, 2025 11:43
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