Closed nserbass closed 1 year ago
Why is webpack
from serverless-webpack
under layerConfig
in custom
?
custom:
layerConfig:
packager: 'npm'
webpack: # <--- Shouldn't this be indented one level down?
configPath: ./webpack.config.js
includeModules: false
externals: [ nodeExternals(), 'dd-trace', 'datadog-lambda-js' ]
We haven't heard from you in a while – I'm going to close this issue for now, but feel free to re-open it if you have any other questions, or concerns, thanks 🐶 !
Expected Behavior
I'm using webpack to build our service to push it to lambdas. There's a rule to exclude
node_modules
from final function package so I've includednodeExternals()
to exclude them. When I addserverless-plugin-datadog
, dependecies should be excluded following configuration inserverless.yml
andwebpack.config.js
Actual Behavior
When I add serverless-plugin-datadog, dependecies are included in each function package.
Specifications
Code
Serverless
webpack.config.js