Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: "chunkSplit.forceSplitting" doesn't work when the chunk splitting strategy is "single-vendor" #4697

Closed
patricklafrance opened this issue Mar 3, 2025 · 1 comment · Fixed by #4708

Comments

@patricklafrance
Copy link

Version

System:
    OS: Windows 11 10.0.22631
    CPU: (20) x64 13th Gen Intel(R) Core(TM) i7-13700H
    Memory: 12.19 GB / 31.62 GB
  Browsers:
    Edge: Chromium (127.0.2651.74)
    Internet Explorer: 11.0.22621.3527

Details

When performance.chunkSplit.forceSplitting is defined and the chunking strategy is "single-vendor":

performance: {
    chunkSplit: {
        strategy: "single-vendor",
        forceSplitting: {
            "react": /node_modules[\\/]react/
        }
    }
}

I would expect in this example, that a react chunk would extracted out of the vendor chunk.

Image

Reproduce link

.

Reproduce Steps

Add the following configuration to a React application:

performance: {
    chunkSplit: {
        strategy: "single-vendor",
        forceSplitting: {
            "react": /node_modules[\\/]react/
        }
    }
}

I would expect that a react.js file would be generated in the dist folder.

@chenjiahan
Copy link
Member

Thank you, this will be fixed in the next release

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 a pull request may close this issue.

2 participants