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