From 2f3e2a3eca77cfcbc4064c2424c3b6c3a977225a Mon Sep 17 00:00:00 2001 From: weareoutman Date: Wed, 23 Oct 2024 18:20:07 +0800 Subject: [PATCH] fix(): manually add array polyfills since old babel doesn't support them --- packages/brick-container/src/polyfill.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/brick-container/src/polyfill.ts b/packages/brick-container/src/polyfill.ts index 7d7ce60203..af2df8fc5c 100644 --- a/packages/brick-container/src/polyfill.ts +++ b/packages/brick-container/src/polyfill.ts @@ -1,3 +1,7 @@ import "core-js/stable"; +// Manually import some new polyfills since old babel doesn't support to load them automatically. +import "core-js/es/array/to-sorted"; +import "core-js/es/array/to-reversed"; +import "core-js/es/array/to-spliced"; import "regenerator-runtime/runtime"; import "./replaceChildren";