serverless-esbuild
serverless-esbuild copied to clipboard
Application Size
Describe the bug
For some reason my application size was 900kb
before using this plugin and simply by adding it went up to 2Mb
without any changes.
Do you guys have any idea why?
Are you using include patterns?
With default Serverless you need to use patterns whereas with this we bring in what you need unless it's some external binary/file you reference dynamically eg. fs.readFile("somefile.txt").
You can look inside the zip for info
Well, I just followed the basic setup for a simple js serverless project. I have not added any patterns. @samchungy
This is my only configuration:
custom:
esbuild:
packager: yarn
And this is my folder structure:
Just fyi, I am using the serverless-layers plugin.
Can you look inside the zip for any info on what's different between the two? It's difficult to speculate based on your screenshots.