Skip to content

Commit

Permalink
docs(lambda-nodejs): Babel target is derived from runtime (#6252)
Browse files Browse the repository at this point in the history
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
jogold and mergify[bot] authored Feb 13, 2020
1 parent efd6f3d commit 5b7b939
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-lambda-nodejs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ The `NodejsFunction` construct exposes some [Parcel](https://parceljs.org/) opti
`buildDir` and `cacheDir`.

Parcel transpiles your code (every internal module) with [@babel/preset-env](https://babeljs.io/docs/en/babel-preset-env) and uses the
`engines.node` defined in `package.json` as target (defaults to Node.js 8).
runtime version of your Lambda function as target.

Configuring Babel with Parcel is possible via a `.babelrc` or a `babel` config in `package.json`.

0 comments on commit 5b7b939

Please sign in to comment.