Skip to content

Commit d32d87c

Browse files
committed
Remove unused services from AWS SDK dependency.
Remove unused services from AWS SDK dependency. This reduces the plugin zip size from 6.5MB to 1.3MB.
1 parent 0a5e719 commit d32d87c

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## Unreleased
22

3+
- Remove unused services from AWS SDK dependency. This
4+
reduces the plugin zip size from 6.5MB to 1.3MB.
5+
36
## 9.5.1 (2025-11-03)
47

58
- Remove extra <script> tag from admin bar enqueue

composer.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,14 @@
6666
"platform": {
6767
"php": "8.1.33"
6868
}
69+
},
70+
"extra": {
71+
"aws/aws-sdk-php": [
72+
"CloudFront",
73+
"S3"
74+
]
75+
},
76+
"scripts": {
77+
"pre-autoload-dump": "Aws\\Script\\Composer\\Composer::removeUnusedServices"
6978
}
7079
}

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
pname = "${name}-composer-deps-dev";
3535
version = "1.0.0";
3636
src = composerSrc;
37-
vendorHash = "sha256-YwvxEVfjAE1VsBSZXXnRn5XfziSwmOvb9stOKZzhwHM=";
37+
vendorHash = "sha256-iVai9qC5vFrqXBsCQn6wXkHdm+J6MEX8ekK2bqVLGUo=";
3838
});
3939
staticDeploySrc = pkgs.lib.cleanSourceWith {
4040
src = self;

0 commit comments

Comments
 (0)