(aws-lambda-nodejs): Expose AssetStaging.exclude as prop to ignore node_modules from fingerprinting #33627
Open
1 of 2 tasks
Labels
@aws-cdk/aws-lambda-nodejs
feature-request
A feature should be added or improved.
needs-triage
This issue or PR still needs to be triaged.
Describe the feature
Add
bundling.exclude
property toNodejsFunction
that is passed to the Asset hereThis would allow certain paths from being included in the fingerprint/assetHash giving developers more control without having to fully customize the hashing logic
Use Case
When using the
NodejsFunction.nodeModules
property the listed modules (and their dependencies) are included directly in the bundled asset. This leads to the containingnode_modules
directory to directly influence the calculatedassetHash
. The contents ofnode_modules
can be unstable for a large number of reasons leading to unnecessary deploymentsProposed Solution
No response
Other Information
No response
Acknowledgements
CDK version used
2.181.1
Environment details (OS name and version, etc.)
N/A
The text was updated successfully, but these errors were encountered: