Skip to content

Commit 6eaddec

Browse files
committed
maint(Build): Remove the IE11 polyfills-loader.
Clear out the polyfills-loader script but keep the module for backwards compatibility. No IE11 compatibility polyfills are included anymore as support for IE11 has recently really and finally dropped. The polyfills-loader.js file is still shipped but empty for compatibility with projects including the polyfills loader.
1 parent a29b9e8 commit 6eaddec

File tree

4 files changed

+3
-102
lines changed

4 files changed

+3
-102
lines changed

package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@
1212
"@fullcalendar/list": "^5.11.3",
1313
"@fullcalendar/luxon2": "^5.11.3",
1414
"@fullcalendar/timegrid": "^5.11.3",
15-
"@juggle/resize-observer": "^3.4.0",
1615
"@stomp/stompjs": "^6.1.2",
1716
"dompurify": "^2.4.1",
1817
"google-code-prettify": "^1.0.5",
1918
"highlight.js": "<11",
2019
"imagesloaded": "^4.1.4",
21-
"intersection-observer": "^0.12.2",
2220
"jquery": "^3.6.1",
2321
"jquery-jcrop": "^0.9.13",
2422
"luxon": "2.4.0",
@@ -30,17 +28,14 @@
3028
"pikaday": "^1.8.0",
3129
"prettier": "^2.8.0",
3230
"prismjs": "^1.29.0",
33-
"promise-polyfill": "^8.2.3",
3431
"screenfull": "^6.0.2",
3532
"select2": "^3.5.1",
3633
"showdown": "^2.1.0",
3734
"showdown-prettify": "^1.3.0",
3835
"slick-carousel": "^1.8.1",
3936
"slides": "git+https://github.com/Patternslib/slides.git",
4037
"spectrum-colorpicker": "^1.8.0",
41-
"tippy.js": "^6.3.7",
42-
"url-polyfill": "^1.1.9",
43-
"whatwg-fetch": "^3.4.0"
38+
"tippy.js": "^6.3.7"
4439
},
4540
"devDependencies": {
4641
"@patternslib/dev": "^3.1.5",

src/polyfills-loader.js

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,2 @@
1-
var script_source = function () {
2-
// See: https://stackoverflow.com/a/984656/1337474
3-
var scripts = document.getElementsByTagName("script");
4-
var script = scripts[scripts.length - 1];
5-
6-
if (script.getAttribute.length !== undefined) {
7-
return script.src;
8-
}
9-
10-
// Some IE quirks
11-
return script.getAttribute("src", -1);
12-
};
13-
14-
(function () {
15-
// https://stackoverflow.com/a/8578840/1337474
16-
// if IE
17-
if (/*@cc_on!@*/ false || !!document.documentMode) {
18-
var script_url = script_source();
19-
script_url = script_url.substring(0, script_url.lastIndexOf("/")) + "/";
20-
21-
var script_tag = document.createElement("script");
22-
script_tag.type = "text/javascript";
23-
script_tag.src = script_url + "bundle-polyfills.min.js";
24-
document.getElementsByTagName("head")[0].appendChild(script_tag);
25-
}
26-
})();
1+
// TODO: REMOVE with next major release
2+
// BBB backwards compatibility

src/polyfills.js

Lines changed: 0 additions & 69 deletions
This file was deleted.

webpack/webpack.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ module.exports = () => {
1010
let config = {
1111
entry: {
1212
"bundle.min": path.resolve(__dirname, "../src/index.js"),
13-
"bundle-polyfills.min": path.resolve(__dirname, "../src/polyfills.js"),
1413
},
1514
};
1615

0 commit comments

Comments
 (0)