Skip to content

Commit a09695b

Browse files
aisamueduardomourar
authored andcommitted
chore(codegen): match lib and target declarations (smithy-lang#678)
`lib` declarations targeting standards newer than the `target` are useful when one polyfills missing features. `lib` declarations targeting _older_ standards are constraining in a strange way: we emit code relying on newer features, but types prevent us from using them Since were are already emitting `es2018` code, we can target that standard for the types as well. This is a spin-off of @eduardomourar's smithy-lang#667 Co-authored-by: Eduardo Rodrigues <[email protected]>
1 parent 32f752d commit a09695b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

smithy-typescript-ssdk-libs/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"module": "commonjs",
1616
"moduleResolution": "node",
1717
"target": "ES2018",
18-
"lib": ["es2015", "dom"],
18+
"lib": ["es2018", "dom"],
1919
"baseUrl": ".",
2020
"strict": true,
2121
"declaration": true,

0 commit comments

Comments
 (0)