From eb3038f3ad1573199346d5edf33effc5f3fab39b Mon Sep 17 00:00:00 2001 From: Alexander Tarasov Date: Wed, 9 Sep 2026 12:41:42 +0200 Subject: [PATCH] fix(deps): Drop unused image-size transitive dependency image-size is pulled in only as an optional dependency of less, which requires it lazily to back the image-size(), image-width() and image-height() LESS functions. No .less file in the repo uses those functions, so the package is dead weight that only generates recurring Dependabot noise. Removing it via a pnpm override drops the resolution entirely on a clean install. Verified that static/less/sentry.less, the entrypoint used by rspack, still compiles to byte-identical CSS without it. Claude-Session: https://claude.ai/code/session_01CeiwiHwrev5Vap9j6csjxV --- package.json | 3 ++- pnpm-lock.yaml | 10 +--------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 758d0d262ba6..7a0f6235842b 100644 --- a/package.json +++ b/package.json @@ -302,7 +302,8 @@ "overrides": { "@isaacs/brace-expansion": "5.0.1", "diff@>=4.0.0 <4.0.4": "4.0.4", - "diff@>=5.0.0 <5.2.2": "5.2.2" + "diff@>=5.0.0 <5.2.2": "5.2.2", + "image-size": "-" }, "packageExtensions": { "@sentry/webpack-plugin@5.3.0": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a0f1e81f75c5..da0bbb31cf10 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,6 +8,7 @@ overrides: '@isaacs/brace-expansion': 5.0.1 diff@>=4.0.0 <4.0.4: 4.0.4 diff@>=5.0.0 <5.2.2: 5.2.2 + image-size: '-' packageExtensionsChecksum: sha256-0VZ2XeajIU53t75fxV6NpDm9r5YxmYRM0rEQhyaaIlQ= @@ -6067,11 +6068,6 @@ packages: resolution: {integrity: sha512-InwqeHHN2XpumIkMvpl/DCJVrAHgCsG5+cn1XlnLWGwtZBm8QJfSusItfrwx81CTp5agNZqpKU2J/ccC5nGT4A==} engines: {node: '>= 4'} - image-size@0.5.5: - resolution: {integrity: sha512-6TDAlDPZxUFCv+fuOkIoXT/V/f3Qbq8e37p+YOiYrUv3v9cc3/6x78VdfPgFVaB9dZYeLUfKgHRebpkm/oP2VQ==} - engines: {node: '>=0.10.0'} - hasBin: true - import-fresh@3.3.0: resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==} engines: {node: '>=6'} @@ -14573,9 +14569,6 @@ snapshots: ignore@6.0.2: {} - image-size@0.5.5: - optional: true - import-fresh@3.3.0: dependencies: parent-module: 1.0.1 @@ -15420,7 +15413,6 @@ snapshots: optionalDependencies: errno: 0.1.7 graceful-fs: 4.2.11 - image-size: 0.5.5 make-dir: 2.1.0 mime: 1.6.0 needle: 3.1.0