ts-import
JSON →Dynamically import and compile TypeScript files on the fly in Node.js (>=18). Current stable version is 5.0.0-beta.1, with a release cadence of major and minor updates every few months. It uses native async import (not require), caches compiled JS in node_modules/ts-import/cache, and provides a customizable Compiler class. Key differentiators vs alternatives: it's asynchronous, minimal dependencies (only one internal package with 0 deps), highly configurable with all tsc flags, and does not interfere with native import/require. It has TypeScript type definitions bundled and requires TypeScript 5 as a peer dependency.
Resources
packagets-import ↗