Skip to content

Commit 96f040d

Browse files
authored
fix(docs): Update .babelrc example for use with TypeScript (#401)
1 parent 70d6332 commit 96f040d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -405,11 +405,18 @@ You may also want to add `typescript @types/node @types/aws-lambda`.
405405

406406
2. Create a Babel config file, e.g. `.babelrc`:
407407

408-
```diff
408+
```json
409409
{
410410
"presets": [
411411
"@babel/preset-typescript",
412-
"@babel/preset-env"
412+
[
413+
"@babel/preset-env",
414+
{
415+
"targets": {
416+
"node": true
417+
}
418+
}
419+
]
413420
],
414421
"plugins": [
415422
"@babel/plugin-proposal-class-properties",

0 commit comments

Comments
 (0)