API reference › @evolu/common › Polyfills › installPolyfills
function installPolyfills(): void;
Defined in: packages/common/src/Polyfills.ts:29
Installs polyfills required by @evolu/common.
Installs:
- Resource-management polyfills (
Symbol.dispose,Symbol.asyncDispose,DisposableStack,AsyncDisposableStack, andSuppressedError) for Safari and React Native MapandWeakMapupsert polyfills (Map.prototype.getOrInsert,Map.prototype.getOrInsertComputed,WeakMap.prototype.getOrInsert, andWeakMap.prototype.getOrInsertComputed) for Node 24 and React Native
@evolu/react-native has its own Polyfills module and its
installPolyfills calls this function first, then installs React Native
specific polyfills.
Call this explicitly from the app entry point.