Exclude Iterator helpers from polyfills#69070
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
a6427a2 to
f4be902
Compare
|
Size Change: 0 B Total Size: 1.84 MB ℹ️ View Unchanged
|
|
Flaky tests detected in f4be902. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/13174632003
|
| 'wp-router', | ||
| 'wp-url', | ||
| 'wp-widgets', | ||
| 'wp-upload-media', |
There was a problem hiding this comment.
The wp-upload-media is missing from tests on CI, though it passes locally for me. Investigating.
49a0855 to
d8b4834
Compare
| // Ignore bundled packages, they don't load separate polyfills. | ||
| if ( in_array( $registered_handle, $this->bundled_scripts, true ) ) { | ||
| continue; | ||
| } |
There was a problem hiding this comment.
It is not ideal, but I couldn't find out why wp-upload-media is missing from $dependents on CI. However, we could skip checking for bundled packages as they are not enqueued separately.
The unit tests are passing without an issue locally. Happy to adjust further if anyone has ideas why this is only failing on CI.
a59d072 to
75f8e85
Compare
* Exclude Iterator helpers from polyfills * Use assertEqualSets * Ignore bundled packages Co-authored-by: Mamaduka <mamaduka@git.wordpress.org> Co-authored-by: swissspidy <swissspidy@git.wordpress.org>
* Exclude Iterator helpers from polyfills * Use assertEqualSets * Ignore bundled packages Co-authored-by: Mamaduka <mamaduka@git.wordpress.org> Co-authored-by: swissspidy <swissspidy@git.wordpress.org>
What?
Similar to #67230.
Related WordPress/wordpress-develop#8224.
PR updates the polyfill exclusion list and adds a rule for new
Iteratorhelpers.Why?
When
core-jswas updated in #67708, it accidentally re-introducedwp-polyfillas a dependency for multiple packages.Testing Instructions
CI tests are passing.