Based on Node-Target Mapping on the TypeScript wiki "es2018"
is the right mapping for Node 10, "es2019"
is the right mapping for Node 12. It seems that non-LTS versions of Node aren't documented, but given this information I feel like "es2018"
is the safest target.
↧
Answer by Walter Rumsby for TypeScript: What's the "right" `target` for node 11?
↧