File tree 2 files changed +9
-0
lines changed
packages/frontend/core/src/bootstrap/polyfill
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 1
1
import { polyfillDispose } from './dispose' ;
2
+ import { polyfillIteratorHelpers } from './iterator-helpers' ;
2
3
import { polyfillPromise } from './promise-with-resolvers' ;
3
4
import { polyfillEventLoop } from './request-idle-callback' ;
4
5
import { polyfillResizeObserver } from './resize-observer' ;
@@ -7,3 +8,4 @@ polyfillResizeObserver();
7
8
polyfillEventLoop ( ) ;
8
9
await polyfillPromise ( ) ;
9
10
await polyfillDispose ( ) ;
11
+ await polyfillIteratorHelpers ( ) ;
Original file line number Diff line number Diff line change
1
+ export async function polyfillIteratorHelpers ( ) {
2
+ if ( typeof globalThis [ 'Iterator' ] !== 'function' ) {
3
+ // @ts -expect-error ignore
4
+ // https://github.com/zloirock/core-js/blob/master/packages/core-js/proposals/iterator-helpers-stage-3.js
5
+ await import ( 'core-js/proposals/iterator-helpers-stage-3' ) ;
6
+ }
7
+ }
You can’t perform that action at this time.
0 commit comments