ESM Loader for TypeScript

JSON →
library 1.0.6 ·javascript
verified May 27, 2026

esm-loader-typescript is a Node.js ESModule loader designed for on-the-fly transpilation of TypeScript (`.ts`) files within an ESModule environment. It leverages Node.js's experimental loader API, facilitating direct import of TypeScript files without a pre-compilation step. Currently at version 1.0.6, the package is primarily suited for development and testing workflows, with an explicit warning against production use due to the inherent instability and potential for breaking changes in Node.js's experimental loader API. It supports two main modes of operation: standalone activation via `NODE_OPTIONS` (using `--loader` for Node.js < 20.7 or `--import` with a registration file for Node.js >= 20.7), and a chainable mode using `node-esm-loader` and a `.loaderrc.js` configuration. Its key differentiators include simple integration into existing ESM projects, the ability to specify a custom `tsconfig.json` or enable debug logging via options, and its role as a building block for more complex loader chains.

total hits 12
actors 7 distinct systems
last hit 2d ago AhrefsBot
GPTBot
2
Script
1
ClaudeBot
1
Search engines
2

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇫🇷 France · 🇩🇪 Germany