url-ponyfill
v0.5.10URL-ponyfill
UMD & ponyfill fork of webcomponents/URL
Usage
ES2015 (webpack, rollup, etc)
import { URL } from 'url-ponyfill'
Node.js
const { URL } = require('url-ponyfill')
Polyfill
import { URL, hasNativeURL } from 'url-ponyfill';
if (!hasNativeURL) {
self.URL = URL;
}