Files
meteor/packages/url/server.js
Seba Kerckhof 180b450255 Add isomorphic URL api with BC (#10518)
* Add isomorphic URL api with BC

* Add shrinkwrap

* Use core-js for URL polyfill
2020-04-17 13:35:43 -04:00

25 lines
707 B
JavaScript

const { URL, URLSearchParams } = require('url');
exports.URL = URL;
exports.URLSearchParams = URLSearchParams;
const { setMinimumBrowserVersions } = require("meteor/modern-browsers");
// https://caniuse.com/#feat=url
setMinimumBrowserVersions({
// Since there is no IE12, this effectively excludes Internet Explorer
// (pre-Edge) from the modern classification. #9818 #9839
ie: 12,
chrome: 32,
edge: 12,
firefox: 26,
mobile_safari: 8,
opera: 36,
safari: [7, 1],
phantomjs: Infinity,
// https://github.com/Kilian/electron-to-chromium/blob/master/full-versions.js
electron: [0, 20],
}, module.id);
// backwards compatability
Object.assign(exports.URL, require('./bc/url_server'));