Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reconcile lib based on target #7

Open
RA80533 opened this issue May 7, 2021 · 0 comments
Open

Reconcile lib based on target #7

RA80533 opened this issue May 7, 2021 · 0 comments

Comments

@RA80533
Copy link

RA80533 commented May 7, 2021

The lib property in the root tsconfig.json restricts the developer from using ECMAScript 2015 features in the project source code despite their would-be inclusion in the target runtime environment (based on the target property).

Solution

Remove the lib property altogether. This will allow the TypeScript compiler to populate the available libraries according to the value of the target property, resulting in a more accurate representation of feature availability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant