Skip to content

Commit 552283c

Browse files
committed
wip
1 parent 26efac5 commit 552283c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/browser/src/browser/standalone.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ if (shouldPolyfill()) {
7575
// load polyfills in order to get AJS to work with old browsers
7676
const script = document.createElement('script')
7777
script.setAttribute(
78-
'src',
79-
'https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/7.7.0/polyfill.min.js'
78+
'src', // this should map to tsconfig lib.
79+
'https://polyfill.io/v3/polyfill.min.js?features=es5,es2015,es2016,es2017,es2018,es2019,es2020'
8080
)
8181

8282
if (document.readyState === 'loading') {

packages/browser/src/lib/browser-polyfill.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ export function shouldPolyfill(): boolean {
22
const browserVersionCompatList: { [browser: string]: number } = {
33
Firefox: 46,
44
Edge: 13,
5+
Opera: 50,
56
}
67

78
const isOperaMiniExtremeMode = (window as any).operamini // compression proxy - allows for page() calls.

0 commit comments

Comments
 (0)