Skip to content

Commit f258b2e

Browse files
authored
chore(examples): use local polyfills (#6076)
1 parent 2974343 commit f258b2e

File tree

11 files changed

+11096
-14
lines changed

11 files changed

+11096
-14
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ coverage
2020
.next
2121

2222
# Non-lintable source files
23+
## Polyfills for examples, retrieved from polyfill.io
24+
examples/**/polyfills.js
2325
## React-Native TypeScript wasn't supporting the mix of react 18 and 17
2426
examples/react/react-native
2527
## Excluded from global typescript config

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
packages/*/CHANGELOG.md
2+
examples/**/polyfills.js

examples/js/e-commerce-umd/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<link rel="stylesheet" href="./src/app.css" />
2626
<link rel="stylesheet" href="./src/app.mobile.css" />
2727
<link rel="stylesheet" href="./src/widgets/PriceSlider.css" />
28-
<script src="https://polyfill.io/v3/polyfill.min.js?features=default%2CArray.prototype.find%2CArray.prototype.includes%2CPromise%2CObject.assign%2CObject.entries"></script>
28+
<script src="./polyfills.js"></script>
2929
<title>E-commerce demo (UMD) | Algolia</title>
3030
</head>
3131

0 commit comments

Comments
 (0)