Skip to content

Commit 096366f

Browse files
committed
Fix object entries problem
1 parent 4ddbc22 commit 096366f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/common/load-dynamic-polyfills.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,15 @@ import detectOldBrowser from 'common/detect-old-browser';
22

33
export default function requirePolyfills() {
44
const promises = [];
5-
if (detectOldBrowser()) {
5+
if (detectOldBrowser() || typeof Object.entries === 'undefined') {
66
promises.push(
77
import(/* webpackChunkName: 'polyfills' */ '@babel/polyfill')
88
);
99
}
1010

1111
if (typeof Error.captureStackTrace === 'undefined') {
1212
promises.push(
13-
import(/* webpackChunkName: 'error-polyfill' */
14-
'error-polyfill')
13+
import(/* webpackChunkName: 'error-polyfill' */ 'error-polyfill')
1514
);
1615
}
1716

0 commit comments

Comments
 (0)