From d49b5b1247302a434a91c61753cc6fab24c8930f Mon Sep 17 00:00:00 2001 From: Hui Zhao <10602282+HuiSF@users.noreply.github.com> Date: Thu, 3 Oct 2024 13:05:51 -0700 Subject: [PATCH] fix(storage): browser module resoltuion is not picked up by metro web (#13881) * fix(storage): browser module resolution is not picked up by metro web * chore: add the resolution for cjs module --- packages/storage/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/storage/package.json b/packages/storage/package.json index 1d434a880b9..fe895e95845 100644 --- a/packages/storage/package.json +++ b/packages/storage/package.json @@ -6,7 +6,8 @@ "module": "./lib-esm/index.js", "typings": "./lib-esm/index.d.ts", "browser": { - "./lib-esm/AwsClients/S3/runtime/index": "./lib-esm/AwsClients/S3/runtime/index.browser.js" + "./lib-esm/AwsClients/S3/runtime/index.js": "./lib-esm/AwsClients/S3/runtime/index.browser.js", + "./lib/AwsClients/S3/runtime/index.js": "./lib/AwsClients/S3/runtime/index.browser.js" }, "sideEffects": [ "./lib/Storage.js",