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

Use DEWP's new auto-wp-polyfill support #39629

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Commits on Oct 2, 2024

  1. Use DEWP's new auto-wp-polyfill support

    `@wordpress/dependency-extraction-webpack-plugin` has added the ability
    to detect a magic `/* wp:polyfill */` comment and only add `wp-polyfill`
    as a dependency if that is found. Since `wp-polyfill` is just a custom
    build of `core-js`, the intention is that
    `babel-plugin-polyfill-corejs3` (maybe via `@babel/preset-env`) would be
    used and then a custom Babel plugin would replace the `core-js` imports
    with the magic comment.
    
    This updates our Babel config to do just that, and removes the blanket
    addition of `wp-polyfill` via `injectPolyfill` or otherwise.
    anomiex committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    08733b8 View commit details
    Browse the repository at this point in the history