bigbuffet-rw/packages/pl-fe/src/polyfills.ts
marcin mikołajczak 4965cee37b pl-fe: Migrate ChatMessageList to @tanstack/virtual
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-09-19 20:35:26 +02:00

7 lines
202 B
TypeScript

import 'intersection-observer';
import ResizeObserver from 'resize-observer-polyfill';
// Needed by @tanstack/virtual, I guess
if (!window.ResizeObserver) {
window.ResizeObserver = ResizeObserver;
}