Skip to content

Commit c7c651d

Browse files
committed
added closest polyfill
1 parent a787470 commit c7c651d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151
"webpack-cli": "^3.3.10"
5252
},
5353
"dependencies": {
54-
"core-js": "^3.6.0"
54+
"core-js": "^3.6.0",
55+
"element-closest-polyfill": "^1.0.0"
5556
},
5657
"repository": {
5758
"type": "git",

src/javascript/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
import 'core-js/es/array/from'; // polyfill IE11
1+
import 'core-js/es/array/from'; // polyfill IE10/11
2+
import 'element-closest-polyfill'; // polyfill IE10/11
3+
24
import {initProgressBar} from './progress-bar';
35

46
// get nodelist to bind to the progress-bar

0 commit comments

Comments
 (0)