@substrate-system/mergeparty
Version:
Automerge + Partykit
21 lines (20 loc) • 777 B
JavaScript
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
if (typeof globalThis.performance === "undefined") {
globalThis.performance = { now: /* @__PURE__ */ __name(() => Date.now(), "now") };
}
if (typeof global !== "undefined" && typeof global.performance === "undefined") {
global.performance = { now: /* @__PURE__ */ __name(() => Date.now(), "now") };
}
try {
Object.defineProperty(globalThis, "performance", {
value: { now: /* @__PURE__ */ __name(() => Date.now(), "now") },
writable: true,
configurable: true
});
} catch (_e) {
}
if (globalThis.performance && !globalThis.performance.now) {
globalThis.performance.now = () => Date.now();
}
//# sourceMappingURL=polyfill.js.map