When using vite to build the browser environment package, an unrelated package(@aws-sdk/signature-v4-crt) is added #4464
Labels
bug
This issue is a bug.
investigating
Issue is being investigated and/or work is in progress to resolve the issue.
p3
This is a minor priority issue
Checkboxes for prior research
Describe the bug
I use aws-sdk-js-v3 sdk as a file upload tool. When I use vite to build this tool, the build product adds an unrelated package (@aws-sdk/signature-v4-crt). I see that this package is used in the nodejs environment. But I use the browser environment. Why is this package used, and how can I troubleshoot this package. And this package(@aws-sdk/signature-v4-crt) is built in commonjs module mode, what I need is es module mode
![image](https://user-images.githubusercontent.com/15622519/220857069-7237f6f3-86c2-483e-89a8-e9f11479e919.png)
SDK version number
"@aws-sdk/client-s3": "^3.137.0", "vite": "^2.9.13",
Which JavaScript Runtime is this issue in?
Browser
Details of the browser/Node.js/ReactNative version
node v16.15.1
Reproduction Steps
my vite build config
Observed Behavior
Expected Behavior
Do not import the
@aws-sdk/signature-v4-crt
package, or the imported@aws-sdk/signature-v4-crt
package is in es module modePossible Solution
No response
Additional Information/Context
No response
The text was updated successfully, but these errors were encountered: