kenchris / urlpattern-polyfill

URLPattern polyfill
https://www.npmjs.com/package/urlpattern-polyfill
MIT License
267 stars 30 forks source link

unify API in esm and CJS implementations #87

Closed SanderElias closed 2 years ago

SanderElias commented 2 years ago

In this PR we update the commonJS implementation to be exactly the same as the ESM version. Both now are 1 file, that will update the global with URLPattern if its not there, and both export the URLPattern class too.

This makes it possible to use them both in the same way