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
Check [esbuild](https://github.com/evanw/esbuild#command-line-usage) documentation for the full list of available options. Note that some options like `entryPoints` or `outdir` cannot be overwritten.
@@ -56,9 +70,11 @@ Usage
56
70
The normal AWS CDK deploy procedure will automatically compile with `esbuild`:
57
71
58
72
- Create the AWS CDK project with `cdk init app --language=typescript`
59
-
- Install aws-lambda-nodejs-esbuild plugin as above
73
+
- Install `aws-lambda-nodejs-esbuild` as above
60
74
- Deploy with `cdk deploy`
61
75
76
+
See examples: [minimal](examples/minimal/README.md) and [complete](examples/complete/README.md)
# [aws-lambda-nodejs-esbuild](../../README.md) complete example
2
+
3
+
This example shows how to use the `aws-lambda-nodejs-esbuild` construct in the most common way.
4
+
5
+
Any package set as `external` in the `esbuildOptions` will not be bundled into the output file, but packed as a `node_modules` dependency.
6
+
7
+
If packing a package is not required, for instance if it exists in a layer, you may set it in the option `exclude`, so it will neither be packed nor bundled. `aws-sdk` is excluded by default.
0 commit comments