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#toReversed polyfill (#10623)

Brooooooklynbf7b1646b308
diff --git a/packages/frontend/core/src/bootstrap/polyfill/array-to-reversed.ts b/packages/frontend/core/src/bootstrap/polyfill/array-to-reversed.ts
new file mode 100644
index 0000000000..308345b555
--- /dev/null
+++ b/packages/frontend/core/src/bootstrap/polyfill/array-to-reversed.ts
@@ -0,0 +1 @@
+import 'core-js/es/array/to-reversed';
diff --git a/packages/frontend/core/src/bootstrap/polyfill/browser.ts b/packages/frontend/core/src/bootstrap/polyfill/browser.ts
index bbe476fd46..24ffb099f0 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-reversed';
import './array-to-spliced';
import './dispose';
import './iterator-helpers';