From 82499334a1bff0c82e357fff5b2d8be2e8cfd3bd Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Fri, 8 Dec 2023 09:36:41 +0000 Subject: [PATCH] Exclude core-js `es.array.push` polyfill (#16091) GitOrigin-RevId: 65510e7d54c0f5165dce7605d67d352b8974eadf --- services/web/babel.config.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/web/babel.config.json b/services/web/babel.config.json index 8d5e03a31f..d4da8e595c 100644 --- a/services/web/babel.config.json +++ b/services/web/babel.config.json @@ -5,7 +5,9 @@ { "useBuiltIns": "usage", // This version must be aligned with the `core-js` version in `package.json` - "corejs": { "version": "3.30" } + "corejs": { "version": "3.30" }, + // Exclude Array.prototype.push polyfill, as it's not needed and affects performance in Chrome + "exclude": ["es.array.push"] } ], ["@babel/react", { "runtime": "automatic" }],