Announcing TypeScript 2.4 - Dynamic Import Expressions

Daniel Rosenwasser:

Dynamic import expressions are a new feature in ECMAScript that allows you to asynchronously request a module at any arbitrary point in your program. These modules come back as Promises of the module itself, and can be await-ed in an async function, or can be given a callback with .then.

What this means in short that you can conditionally and lazily import other modules and libraries to make your application more efficient and resource-conscious.

A great new feature for ECMAscript now available in TypeScript.