-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Node Target Mapping
Ezard edited this page Nov 27, 2020
·
12 revisions
You can let TypeScript compile as little as possible by knowing what the baseline support for ECMAScript features are available in your node version.
To update this file, you can use node.green to map to the different options in microsoft/typescript@src/lib
{
"compilerOptions": {
"lib": ["ES2020"],
"module": "commonjs",
"target": "ES2020"
}
}
{
"compilerOptions": {
"lib": ["ES2019"],
"module": "commonjs",
"target": "ES2019"
}
}
{
"compilerOptions": {
"lib": ["es2018"],
"module": "commonjs",
"target": "es2018"
}
}
Note: Follow issue #20411 for more information on changes to the es2018 target/lib.
{
"compilerOptions": {
"lib": ["es2017"],
"module": "commonjs",
"target": "es2017"
}
}
News
Debugging TypeScript
- Performance
- Performance-Tracing
- Debugging-Language-Service-in-VS-Code
- Getting-logs-from-TS-Server-in-VS-Code
- JavaScript-Language-Service-in-Visual-Studio
- Providing-Visual-Studio-Repro-Steps
Contributing to TypeScript
- Contributing to TypeScript
- TypeScript Design Goals
- Coding Guidelines
- Useful Links for TypeScript Issue Management
- Writing Good Design Proposals
- Compiler Repo Notes
- Deployment
Building Tools for TypeScript
- Architectural Overview
- Using the Compiler API
- Using the Language Service API
- Standalone Server (tsserver)
- TypeScript MSBuild In Depth
- Debugging Language Service in VS Code
- Writing a Language Service Plugin
- Docker Quickstart
FAQs
The Main Repo