fix(storage): replace jsdelivr with esm.sh for aws-sdk

Switched the CDN provider for the AWS SDK (R2 client) from `jsdelivr` to `esm.sh` to resolve a runtime dependency error ("does not provide an export named 'blobHasher'"). This error was caused by a broken bundling of the transitive dependency `@smithy/hash-blob-browser` on `jsdelivr`.

This change updates the `AWS_SDK_SPECIFIER` constant in `js/storage/r2-s3.js`.
This commit is contained in:
google-labs-jules[bot] committed 2026-01-14 15:48:30 +00:00
1 parent f9f8b9da4a
commit 4aa0021029
1 file changed
+1 -2
+1 -2
View File
@@ -1,7 +1,6 @@
// js/storage/r2-s3.js
const AWS_SDK_SPECIFIER =
"https://cdn.jsdelivr.net/npm/@aws-sdk/[email protected]/+esm";
const AWS_SDK_SPECIFIER = "https://esm.sh/@aws-sdk/[email protected]";
const disableNetworkImports = Boolean(
globalThis?.__BITVID_DISABLE_NETWORK_IMPORTS__