mirror-web/_src/lib/legacy-polyfill.js
2024-04-21 13:17:19 +08:00

15 lines
506 B
JavaScript

import Es6ProxyPolyfill from "./es6-proxy-polyfill.js";
import "promise-polyfill/src/polyfill";
import "whatwg-fetch";
import "events-polyfill";
import "element-polyfill";
import "@webcomponents/template/template.min.js";
const globalObj =
(typeof globalThis !== "undefined" && globalThis) ||
(typeof self !== "undefined" && self) ||
// eslint-disable-next-line no-undef
(typeof global !== "undefined" && global) ||
{};
globalObj.Proxy = typeof Proxy === "undefined" ? Es6ProxyPolyfill : Proxy;