From ba3c61d81527eeeafbfc0693cba477838b57c167 Mon Sep 17 00:00:00 2001 From: Johnny Huynh <27847622+johnnyhuy@users.noreply.github.com> Date: Sat, 3 Oct 2026 15:42:40 +1000 Subject: [PATCH] chore: drop unused material-ui v4 deps from plausible plugin The plugin source never imports @material-ui/core, icons, lab, @backstage/theme, @backstage/core-components or react-use - it only uses @backstage/core-plugin-api and react-helmet. Removes the dead declared deps instead of migrating them to @mui, which would just carry unused packages. Any remaining @material-ui v4 in the lockfile is Backstage core's own transitive requirement. Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com> --- plugins/plausible/package.json | 8 +------- yarn.lock | 6 ------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/plugins/plausible/package.json b/plugins/plausible/package.json index 749d7bb..43370ce 100644 --- a/plugins/plausible/package.json +++ b/plugins/plausible/package.json @@ -24,14 +24,8 @@ "postpack": "backstage-cli package postpack" }, "dependencies": { - "@backstage/core-components": "backstage:^", "@backstage/core-plugin-api": "backstage:^", - "@backstage/theme": "backstage:^", - "@material-ui/core": "^4.9.13", - "@material-ui/icons": "^4.9.1", - "@material-ui/lab": "4.0.0-alpha.61", - "react-helmet": "^6.1.0", - "react-use": "^17.2.4" + "react-helmet": "^6.1.0" }, "peerDependencies": { "react": "^16.13.1 || ^17.0.0 || ^18.0.0" diff --git a/yarn.lock b/yarn.lock index 6c82e63..3aa83cc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7139,14 +7139,9 @@ __metadata: dependencies: "@backstage/cli": "backstage:^" "@backstage/core-app-api": "backstage:^" - "@backstage/core-components": "backstage:^" "@backstage/core-plugin-api": "backstage:^" "@backstage/dev-utils": "backstage:^" "@backstage/test-utils": "backstage:^" - "@backstage/theme": "backstage:^" - "@material-ui/core": "npm:^4.9.13" - "@material-ui/icons": "npm:^4.9.1" - "@material-ui/lab": "npm:4.0.0-alpha.61" "@testing-library/dom": "npm:^10.0.0" "@testing-library/jest-dom": "npm:^6.0.0" "@testing-library/react": "npm:^16.0.0" @@ -7158,7 +7153,6 @@ __metadata: react-dom: "npm:^18.0.0" react-helmet: "npm:^6.1.0" react-router-dom: "npm:^6.0.0" - react-use: "npm:^17.2.4" peerDependencies: react: ^16.13.1 || ^17.0.0 || ^18.0.0 languageName: unknown