From 06e1c02e8d84b30d86d2ed01920db7799ba53f29 Mon Sep 17 00:00:00 2001
From: Roshaan Siddiqui <siddiqui.roshaan@gmail.com>
Date: Tue, 13 Jun 2023 13:34:11 -0500
Subject: [PATCH] chore: remove unnecessary pollyfil deps, replace with minimal
 deps

---
 frontend/package.json       | 6 ++----
 frontend/src/pages/_app.tsx | 3 ++-
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/frontend/package.json b/frontend/package.json
index 649f4d457..273570d3c 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -38,9 +38,7 @@
     "buffer": "^6.0.3"
   },
   "devDependencies": {
-    "@babel/core": "^7.22.5",
-    "@babel/plugin-transform-runtime": "^7.22.5",
-    "@babel/polyfill": "^7.12.1",
-    "raw-loader": "^4.0.2"
+    "core-js": "^3.31.0",
+    "regenerator-runtime": "^0.13.11"
   }
 }
diff --git a/frontend/src/pages/_app.tsx b/frontend/src/pages/_app.tsx
index 82e199267..4004ca5aa 100644
--- a/frontend/src/pages/_app.tsx
+++ b/frontend/src/pages/_app.tsx
@@ -7,7 +7,8 @@ import {
   NearSocialBridgeProvider,
 } from "near-social-bridge";
 import { IndexerDetailsProvider } from '../contexts/IndexerDetailsContext';
-import "@babel/polyfill";
+import 'core-js/stable';
+import 'regenerator-runtime/runtime';
 overrideLocalStorage();
 
 export default function App({ Component, pageProps }: AppProps) {