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
{{ message }}
This repository has been archived by the owner on Oct 14, 2021. It is now read-only.
I'm not sure this is a bug, but I found excluding the aws-sdk in a file build method using webpack unintuitive. Not only does it need to be excluded within the webpack.config.js using: externals: ['aws-sdk']
But it also needs to excluded in the serverless.build.yml using
modules:
exclude:
- aws-sdk
deepExclude: # Excluded from deep nested node_modules
- aws-sdk
It seems odd to have to exclude it in both places.
The text was updated successfully, but these errors were encountered:
The reason for this is that webpack is its own thing, and it's expected that to use it you understand the way webpack works. Externals are basically saying to webpack "dont try to bundle this". The module excludes from this plugin can then take effect.
It may be that it should be documented as a use-case, though.
I'm not sure this is a bug, but I found excluding the
aws-sdk
in a file build method using webpack unintuitive. Not only does it need to be excluded within thewebpack.config.js
using:externals: ['aws-sdk']
But it also needs to excluded in the
serverless.build.yml
usingIt seems odd to have to exclude it in both places.
The text was updated successfully, but these errors were encountered: