Skip to content
Snippets Groups Projects

Use core-js URL polyfill instead of whatwg-url

Merged Administrator requested to merge core-js-url-polyfill into master

Created by: felixfbecker

whatwg-url has a very large bundle size, because it is basically the pure-JS reference implementation, including a lot of details with domain encoding, punycode, etc. It's not intended as polyfill.

This reduces our bundle size by 28% (0.692MB -> 0.499MB, Δ ~200KB)

Verified that core-js URL parses out hostnames properly from custom hosts (git://), which is the primary thing we care about.

Merge request reports

Merged by avatar (Jul 5, 2025 3:46pm UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Created by: felixfbecker

    I verified that core-js URL parses out hostnames properly from custom hosts (git://), which is the primary thing we care about. Please let me know if you can think of another edge case!

Please register or sign in to reply
Loading