aws-sdk-js-v3 icon indicating copy to clipboard operation
aws-sdk-js-v3 copied to clipboard

Do not generate node artifacts for browser packages

Open trivikr opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe.

Some browser packages generate artifacts.

For example, hash-blob-browser is clearly meant to be used on the frontend but it generates node artifact: https://github.com/aws/aws-sdk-js-v3/blob/683beb41dc2214bc61cae4d1899f76011ea56520/packages/hash-blob-browser/package.json#L4-L7

Describe the solution you'd like

Do not generate node artifacts for browser packages

Describe alternatives you've considered

Retaining the artifacts as they're not used.

trivikr avatar Apr 08 '22 20:04 trivikr

Created a separate feature request for removing "module" field at https://github.com/aws/aws-sdk-js-v3/issues/3526 Remove frontend artifacts from node-only packages can be followed up in that issue.

trivikr avatar Apr 08 '22 22:04 trivikr