Add eslint rule to warn on import of `aws-sdk` root
Closed this issue · 0 comments
fargito commented
Just like lodash
, exports from aws-sdk
must not be imported from its root, but from a specific path, such as aws-sdk/clients/....
.
This is because aws-sdk
is included as cjs in the lambda runtime but cannot be tree-shaked. This is a big performance issue.