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

core(legacy-javascript): update to target Baseline #16366

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

connorjclark
Copy link
Collaborator

@connorjclark connorjclark commented Mar 5, 2025

  • Rather than use esmodules as the anchor for "legacy" JS, use Baseline
  • Automate the creation of the polyfill modules to check for via core-js-compat. This made it feasible to add many more polyfills
  • Add additional tests to validate that each polyfill being checked can be consistently detected. If it cannot (even w/o source maps), it is excluded
  • Removes support for detecting core-js@2 polyfills. But the recently added warning if core-js@2 is detected remains.

This audit can now be described as: inform developers when they are polyfilling a feature that is widely supported across all major browsers, and provide an estimate for how much that costs (in terms of bytes / impact on metrics via byte efficiency).

@connorjclark connorjclark requested a review from a team as a code owner March 5, 2025 01:46
@connorjclark connorjclark requested review from adamraine and removed request for a team March 5, 2025 01:46
@connorjclark connorjclark requested a review from paulirish March 5, 2025 01: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.

2 participants