ts-node and custom loaders

Viewed 73

Is it possible to use ts-node and a custom loader? In the docs I only see a way to enable esm compatibility.

ts-node --esm my-file.ts

I am trying to use a custom loader for testing an ESM module but I don't want to use node to compile each time since this is for a test suite. The way to use (multiple) loaders in node is like so

node --loader=esm --loader=testdouble my-file.js
1 Answers
Related