[API reference](https://evolu.dev/docs/api-reference) › [@evolu/common](https://evolu.dev/docs/api-reference/common) › [Polyfills](https://evolu.dev/docs/api-reference/common/Polyfills) › installPolyfills

```ts
function installPolyfills(): void;
```

Defined in: [packages/common/src/Polyfills.ts:29](https://github.com/evoluhq/evolu/blob/037c390af081e9944d616ff298a729515c5c5ab7/packages/common/src/Polyfills.ts#L29)

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

- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Resource_management
- https://github.com/es-shims/DisposableStack
- https://github.com/es-shims/DisposableStack/issues/9