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
When uploading with serverless deploy (and/or with serverless deploy function --function svelte && serverless deploy function --function cfLambda && serverless s3deploy), it seems that it doesn't include node_modules in the uploaded content. This leads to all of my imported modules failing to load.
Example: (this is my database utilities package)
Is there something I can do during the build step to get node_modules included in the build output? Does esbuild support some sort of tree shaking where it includes only the dependencies that are needed?
The text was updated successfully, but these errors were encountered:
Hiya,
When uploading with
serverless deploy
(and/or withserverless deploy function --function svelte && serverless deploy function --function cfLambda && serverless s3deploy
), it seems that it doesn't include node_modules in the uploaded content. This leads to all of my imported modules failing to load.Example: (this is my database utilities package)
Is there something I can do during the build step to get node_modules included in the build output? Does esbuild support some sort of tree shaking where it includes only the dependencies that are needed?
The text was updated successfully, but these errors were encountered: