API reference@evolu/commonPolyfills › 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, and SuppressedError) for Safari and React Native
  • Map and WeakMap upsert polyfills (Map.prototype.getOrInsert, Map.prototype.getOrInsertComputed, WeakMap.prototype.getOrInsert, and WeakMap.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.

See