We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ddbc22 commit 096366fCopy full SHA for 096366f
packages/common/load-dynamic-polyfills.js
@@ -2,16 +2,15 @@ import detectOldBrowser from 'common/detect-old-browser';
2
3
export default function requirePolyfills() {
4
const promises = [];
5
- if (detectOldBrowser()) {
+ if (detectOldBrowser() || typeof Object.entries === 'undefined') {
6
promises.push(
7
import(/* webpackChunkName: 'polyfills' */ '@babel/polyfill')
8
);
9
}
10
11
if (typeof Error.captureStackTrace === 'undefined') {
12
13
- import(/* webpackChunkName: 'error-polyfill' */
14
- 'error-polyfill')
+ import(/* webpackChunkName: 'error-polyfill' */ 'error-polyfill')
15
16
17
0 commit comments