Skip to content

Commit fbbf8f1

Browse files
authored
Merge pull request #1091 from Patternslib/thet-optimizations-noie11
Bundle optimizations pt2
2 parents 46ba4df + fa20caa commit fbbf8f1

File tree

7 files changed

+330
-316
lines changed

7 files changed

+330
-316
lines changed

package.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,10 @@
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",
18-
"google-code-prettify": "^1.0.5",
1917
"highlight.js": "<11",
2018
"imagesloaded": "^4.1.4",
21-
"intersection-observer": "^0.12.2",
2219
"jquery": "^3.6.1",
2320
"jquery-jcrop": "^0.9.13",
2421
"luxon": "2.4.0",
@@ -29,21 +26,17 @@
2926
"photoswipe": "^4.1.3",
3027
"pikaday": "^1.8.0",
3128
"prettier": "^2.8.0",
32-
"prismjs": "^1.29.0",
33-
"promise-polyfill": "^8.2.3",
3429
"screenfull": "^6.0.2",
3530
"select2": "^3.5.1",
3631
"showdown": "^2.1.0",
3732
"showdown-prettify": "^1.3.0",
3833
"slick-carousel": "^1.8.1",
3934
"slides": "git+https://github.com/Patternslib/slides.git",
4035
"spectrum-colorpicker": "^1.8.0",
41-
"tippy.js": "^6.3.7",
42-
"url-polyfill": "^1.1.9",
43-
"whatwg-fetch": "^3.4.0"
36+
"tippy.js": "^6.3.7"
4437
},
4538
"devDependencies": {
46-
"@patternslib/dev": "^3.1.5",
39+
"@patternslib/dev": "^3.1.6",
4740
"@patternslib/pat-content-mirror": "^3.0.0",
4841
"@patternslib/pat-doclock": "^3.0.0",
4942
"@patternslib/pat-shopping-cart": "^3.0.0",
@@ -71,7 +64,6 @@
7164
},
7265
"browserslist": [
7366
">0.2%",
74-
"ie >= 11",
7567
"not dead"
7668
],
7769
"author": {

src/pat/collapsible/collapsible.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ class Pattern extends BasePattern {
3636
static name = "collapsible";
3737
static trigger = ".pat-collapsible";
3838
static parser = parser;
39-
jquery_plugin = true;
4039

4140
transitions = {
4241
"none": { closed: "hide", open: "show" },

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.

src/public_path.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// DEPRECATED. Webpack handles the public path by iteself.
2+
// TODO: REMOVE with next major release
13
// NOTE: Import this file before any other files
24
// Overwrite path to load resources or use default one.
35
__webpack_public_path__ = window.__patternslib_public_path__; // eslint-disable-line no-undef

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)