You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't want my offline-first React app to be bloated in size nor for default React apps to unnecessarily target outdated ECMAScript.
With Internet Explorer 11 support ended what does this mean for what version of ES we can target for web applications created through create-react-app?
I am looking forward to being able to use things life async generators without high transpilations costs once we can safely target versions of ECMAScript with these features fully supported natively.
Describe the solution you'd like
Change the generated default tsconfig.jsontarget to something greater than ES5 now that IE11 does not need to be supported. This should update relevant templates (typescript, pwa-typescript, etc.).
Update docs to explain that this can be lowered to ES5 by the developer if they want to use react-app-polyfill to support Internet Explorer.
Update docs to explain that this can be set to a higher value depending on your browserslist (https://create-react-app.dev/docs/supported-browsers-features/); in fact, it would be slick if there were a way to suggest a TypeScript target given a browserlist.
Describe alternatives you've considered
leave things as they are which likely means developers will continue to target ES5 even though such may be unnecessary
add additional documentation for TypeScript users as to how to smartly navigate this (e.g. if I'm building an offline-first React app where I know all of my users are using iOS Safari or Android Chrome and I know the minimum versions I need to support then how do I map this back to an appropriate TypeScript target?)
Additional context
I'm looking forward to TypeScript being more strictly typing for my JavaScript and less about compiling down do older JavaScript. Thank you for this great tool for building web apps and helping me understand what is meaningful to change and not change here in a post-ie11 world.
The text was updated successfully, but these errors were encountered:
Is your proposal related to a problem?
I don't want my offline-first React app to be bloated in size nor for default React apps to unnecessarily target outdated ECMAScript.
With Internet Explorer 11 support ended what does this mean for what version of ES we can target for web applications created through
create-react-app
?I am looking forward to being able to use things life async generators without high transpilations costs once we can safely target versions of ECMAScript with these features fully supported natively.
Describe the solution you'd like
tsconfig.json
target
to something greater thanES5
now that IE11 does not need to be supported. This should update relevant templates (typescript
,pwa-typescript
, etc.).ES5
by the developer if they want to usereact-app-polyfill
to support Internet Explorer.browserslist
(https://create-react-app.dev/docs/supported-browsers-features/); in fact, it would be slick if there were a way to suggest a TypeScript target given abrowserlist
.Describe alternatives you've considered
ES5
even though such may be unnecessaryAdditional context
I'm looking forward to TypeScript being more strictly typing for my JavaScript and less about compiling down do older JavaScript. Thank you for this great tool for building web apps and helping me understand what is meaningful to change and not change here in a post-ie11 world.
The text was updated successfully, but these errors were encountered: