Skip to content

Commit 591822d

Browse files
sghoweriremydenton
authored andcommitted
fix: Update webcomponentjs shims to address known IE11 errors. Switch on ES7 array.includes shim to address silent error w/ IE11 displaying icons correctly
1 parent 35de086 commit 591822d

File tree

3 files changed

+8
-35
lines changed

3 files changed

+8
-35
lines changed

package-lock.json

Lines changed: 4 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/bolt-core/package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,7 @@
1010
},
1111
"dependencies": {
1212
"@bolt/core-data": "^0.2.0-beta.0",
13-
"@webcomponents/custom-elements": "^1.0.4",
14-
"@webcomponents/shadycss": "^1.0.6",
15-
"@webcomponents/shadydom": "bolt-design-system/shadydom#hotfix/fix-text-undefined-IE11",
16-
"@webcomponents/template": "^1.1.0",
17-
"@webcomponents/webcomponents-platform": "^1.0.0",
18-
"@webcomponents/webcomponentsjs": "^1.0.14",
13+
"@webcomponents/webcomponentsjs": "^1.0.22",
1914
"core-js": "^2.5.1",
2015
"es6-promise": "^4.1.1",
2116
"preact": "^8.2.5",

packages/bolt-core/polyfills/polyfill-loader.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,19 @@ require('es6-promise').polyfill();
22
require('core-js/modules/es6.array.iterator');
33
require('core-js/modules/es6.symbol');
44
require('core-js/modules/es6.array.from');
5+
require('core-js/modules/es7.array.includes');
56

67
export const polyfillLoader = new Promise(function (resolve, reject) {
78
if (window.customElements !== undefined) {
89
Promise.all([
910
import(/* webpackChunkName: "custom-elements-es5-adapter" */ '@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js'),
10-
import(/* webpackChunkName: "wc-polyfill-sd" */ './wc-polyfill-sd')
11+
import(/* webpackChunkName: "webcomponents-hi-sd-ce" */ '@webcomponents/webcomponentsjs/webcomponents-hi-sd-ce.js')
1112
]).then(() => {
1213
resolve();
1314
});
1415
} else {
1516
Promise.all([
16-
import(/* webpackChunkName: "wc-polyfill-ce-sd" */ './wc-polyfill-ce-sd')
17+
import(/* webpackChunkName: "webcomponents-lite" */ '@webcomponents/webcomponentsjs/webcomponents-lite.js')
1718
]).then(() => {
1819
resolve();
1920
});

0 commit comments

Comments
 (0)