Skip to content

Commit c919f08

Browse files
Merge #1522
1522: Change target in tsconfig to ES6 r=bidoubiwa a=bidoubiwa By default, the target in a tsconfig is `ES3`. This ensures compatibility with environments that predates 2015. The downside of having this insurance is the size of the bundle. By changing from `ES3` to `esnext` we go from a bundle size of 108k to a bundle size of 60k. Looking at what other libraries do, they seem to agree on using `esnext` as a target. While you might argue that it raises some risks, our library, like the other ones using `esnext`, is made to be used in modern environments. Co-authored-by: Charlotte Vermandel <[email protected]>
2 parents c610b4f + 21cb630 commit c919f08

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"compilerOptions": {
33
"module": "esnext",
4+
"target": "ES6",
45
"noEmit": true,
56
"allowJs": false,
67
"removeComments": false,

0 commit comments

Comments
 (0)