Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(web): add Array#toSpliced and Array#toReversed polyfill (#10614)

Brooooooklyne99b25ae6a6a
diff --git a/packages/frontend/core/src/bootstrap/polyfill/array-to-spliced.ts b/packages/frontend/core/src/bootstrap/polyfill/array-to-spliced.ts
new file mode 100644
index 0000000000..4a0213c7bc
--- /dev/null
+++ b/packages/frontend/core/src/bootstrap/polyfill/array-to-spliced.ts
@@ -0,0 +1 @@
+import 'core-js/es/array/to-spliced.js';
diff --git a/packages/frontend/core/src/bootstrap/polyfill/browser.ts b/packages/frontend/core/src/bootstrap/polyfill/browser.ts
index bdf4adf1ca..bbe476fd46 100644
--- a/packages/frontend/core/src/bootstrap/polyfill/browser.ts
+++ b/packages/frontend/core/src/bootstrap/polyfill/browser.ts
@@ -1,3 +1,4 @@
+import './array-to-spliced';
import './dispose';
import './iterator-helpers';
import './promise-with-resolvers';