You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the "bare-bones client" imports I usually get small-ish bundles ~230kb with esbuild + --minify.
However when I import paginateDescribeInstanceTypes the whole bundle blows up to 2.1mb (minified).
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.
Describe the bug
Using the "bare-bones client" imports I usually get small-ish bundles
~230kb
with esbuild +--minify
.However when I import
paginateDescribeInstanceTypes
the whole bundle blows up to 2.1mb (minified).Your environment
SDK version number
@aws-sdk/[email protected]
Is the issue in the browser/Node.js/ReactNative?
Browser
Details of the browser/Node.js/ReactNative version
N/A as the problem happens during bundling
Steps to reproduce
Switch between
DescribeInstanceTypesCommand
andpaginateDescribeInstanceTypes
in the above code snippet and bundling it via:esbuild --bundle *.ts --outdir=dist --metafile=dist/metafile.json --sourcemap --minify
Observed behavior
Importing
paginateDescribeInstanceTypes
blows up the bundle and includes everything (same size as when importing:Expected behavior
As with other
Describe*
andpaginate*
methods, importing them should not result in bundling the entire EC2 library.Screenshots
Small bundle (source map explorer on bundle-buddy):
Large bundle (source map explorer on bundle-buddy):
Additional context
Related to: #3023
The text was updated successfully, but these errors were encountered: