one
Version:
One is a new React Framework that makes Vite serve both native and web.
10 lines (9 loc) • 511 B
JavaScript
import { TextDecoder as TextDecoderPolyfill } from "@bacons/text-decoder";
import structuredClone from "@ungap/structured-clone";
import { promiseWithResolvers } from "./utils/promiseWithResolvers.mjs";
globalThis["global"] = globalThis;
globalThis["TextDecoder"] ||= TextDecoderPolyfill;
globalThis["structuredClone"] ||= structuredClone;
globalThis["requestAnimationFrame"] ||= setTimeout;
Promise.withResolvers || (Promise.withResolvers = promiseWithResolvers);
//# sourceMappingURL=polyfills-mobile.mjs.map