From 1ad5f4521789ef8e515c4903186e17de91aeb88a Mon Sep 17 00:00:00 2001 From: Joe Karow <58997957+JoeKarow@users.noreply.github.com> Date: Wed, 16 Aug 2023 10:39:34 -0400 Subject: [PATCH] IN-914 add polyfill for Array.prototype.at --- apps/app/package.json | 1 + apps/app/src/pages/_app.tsx | 1 + pnpm-lock.yaml | 3 +++ 3 files changed, 5 insertions(+) diff --git a/apps/app/package.json b/apps/app/package.json index fceebaabca..69248d3e18 100644 --- a/apps/app/package.json +++ b/apps/app/package.json @@ -78,6 +78,7 @@ "@weareinreach/util": "workspace:*", "axios": "1.4.0", "cookies-next": "2.1.2", + "core-js": "3.32.0", "dayjs": "1.11.9", "deepmerge": "4.3.1", "duration-fns": "3.0.2", diff --git a/apps/app/src/pages/_app.tsx b/apps/app/src/pages/_app.tsx index 3eb359e35f..838b823203 100644 --- a/apps/app/src/pages/_app.tsx +++ b/apps/app/src/pages/_app.tsx @@ -23,6 +23,7 @@ import { appCache, appTheme } from '@weareinreach/ui/theme' import { api } from '~app/utils/api' import nextI18nConfig from '../../next-i18next.config.mjs' +import 'core-js/features/array/at' const fontWorkSans = Work_Sans({ subsets: ['latin'] }) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 754622a8d0..d9245eafd9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -277,6 +277,9 @@ importers: cookies-next: specifier: 2.1.2 version: 2.1.2 + core-js: + specifier: 3.32.0 + version: 3.32.0 dayjs: specifier: 1.11.9 version: 1.11.9