Skip to content

Commit 13eb380

Browse files
committed
Change TypeScript target to ES2015
1 parent ddb785b commit 13eb380

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Changed
1111

12+
- Change the compiler target from `es5` to `es2015` which has been round for 7+ years. It is time to move on.
1213
- Refactor `ReCaptcha` from class-based to functional component using React Hooks.
1314
- Change the minimum supported React version to `16.8.0`, which is the first React version to introduce Hooks.
1415
- Refactor constants outside the `ReCaptcha` component.

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"target": "es5",
3+
"target": "es2015",
44
"module": "es2015",
55
"moduleResolution": "node", // must be set because of module: "es2015" which will default resolution to "classic".
66
"lib": ["es2015", "dom"],

0 commit comments

Comments
 (0)