TypeScript 4.5, a planned upgrade to Microsoftโ€™s strongly typed language based on JavaScript, is set to support ECMAScript modules in Node.js.

TypeScript 4.5 became available as a beta release on October 1. Node.js, which can work with TypeScript, has been working to support ECMAScript modules (ESM), which enable packaging of JavaScript code for reuse. This work has been difficult because Node.js was built on a different module system, CommonJS, Microsoft said. But ESM was largely implemented in Node.js 12. With ESM support in mind, TypeScript 4.5 offers two new

1
module

settings,

1
node12

and

1
nodenext

.

To read this article in full, please click here


0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *