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

fix(legacy): improve deterministic build of the polyfill bundle by sorting the polyfills discovered by babel #16505

Conversation

shankerwangmiao
Copy link

Description

The polyfill bundle generated by the legacy plugin is non deterministic, because the order of calling renderChunk() affects the input of the finally generated polyfill bundle.

This PR solves this issue by sorting the polyfills in need discovered by babel. The polyfills added directly from the plugin configuration is kept ordered the first, same as before.

Previously, #13672 (comment) mentioned this issue.

Copy link

stackblitz bot commented Apr 23, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@shankerwangmiao shankerwangmiao mentioned this pull request Apr 23, 2024
7 tasks
@shankerwangmiao shankerwangmiao force-pushed the fix-legacy-polyfill-deterministic branch 2 times, most recently from b03e8c5 to 2b44e8a Compare April 30, 2024 16:14
@shankerwangmiao shankerwangmiao force-pushed the fix-legacy-polyfill-deterministic branch from 2b44e8a to bb79c9b Compare April 30, 2024 16:47
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.

None yet

1 participant