Commit c7f2a29de7e for woocommerce
commit c7f2a29de7efd5b12c08b88649ee89042948f8e2
Author: Raluca Stan <ralucastn@gmail.com>
Date: Tue Sep 8 20:43:59 2026 +0200
Remove IE8-era build targets and CSS hacks (#68077)
* Remove IE8-era build targets and CSS hacks
* Add changelog entry for IE8 leftovers removal
Uses a message body rather than a Comment header, so the change actually
lands in the changelog. It re-minifies 48 shipped files, which is worth
recording even though nothing behaves differently.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
diff --git a/plugins/woocommerce/changelog/dev-remove-ie8-leftovers b/plugins/woocommerce/changelog/dev-remove-ie8-leftovers
new file mode 100644
index 00000000000..6445f68f788
--- /dev/null
+++ b/plugins/woocommerce/changelog/dev-remove-ie8-leftovers
@@ -0,0 +1,4 @@
+Significance: patch
+Type: dev
+
+Remove IE8-era leftovers from the classic-assets build: the ie8 uglify flag, the IE 8/9 browserslist targets, and two dead IE-only CSS hacks. Minified output changes; no behavior change on any supported browser.
diff --git a/plugins/woocommerce/client/legacy/Gruntfile.js b/plugins/woocommerce/client/legacy/Gruntfile.js
index c42a23ff7a2..358256932e5 100644
--- a/plugins/woocommerce/client/legacy/Gruntfile.js
+++ b/plugins/woocommerce/client/legacy/Gruntfile.js
@@ -30,7 +30,6 @@ module.exports = function ( grunt ) {
// Minify .js files.
uglify: {
options: {
- ie8: true,
parse: {
strict: false,
},
diff --git a/plugins/woocommerce/client/legacy/css/dashboard.scss b/plugins/woocommerce/client/legacy/css/dashboard.scss
index 8665359ab55..741768e8ef9 100644
--- a/plugins/woocommerce/client/legacy/css/dashboard.scss
+++ b/plugins/woocommerce/client/legacy/css/dashboard.scss
@@ -277,7 +277,6 @@ ul.woocommerce_stats {
left: 0;
position: absolute;
letter-spacing: 0.1em;
- letter-spacing: 0\9; // IE8 & below hack ;-(
}
span {
@@ -295,7 +294,6 @@ ul.woocommerce_stats {
position: absolute;
left: 0;
letter-spacing: 0.1em;
- letter-spacing: 0\9; // IE8 & below hack ;-(
color: $wp-admin-text-gray;
}
}
diff --git a/plugins/woocommerce/client/legacy/css/reports-print.scss b/plugins/woocommerce/client/legacy/css/reports-print.scss
index d67e268df54..cada8de4091 100644
--- a/plugins/woocommerce/client/legacy/css/reports-print.scss
+++ b/plugins/woocommerce/client/legacy/css/reports-print.scss
@@ -8,7 +8,6 @@
color: #000 !important;
text-shadow: none !important;
filter: none !important;
- -ms-filter: none !important;
font-size: 9pt !important;
opacity: 1;
transition: none !important;
diff --git a/plugins/woocommerce/package.json b/plugins/woocommerce/package.json
index 9a85c0e9e42..fb979762107 100644
--- a/plugins/woocommerce/package.json
+++ b/plugins/woocommerce/package.json
@@ -1165,9 +1165,7 @@
"node": "^24.15.0"
},
"browserslist": [
- "> 0.1%",
- "ie 8",
- "ie 9"
+ "> 0.1%"
],
"dependencies": {
"@woocommerce/admin-library": "workspace:*",