Allows to use ts-node and tsconfig-paths with ES Modules. Works only in Node 17+.
WARNING: This Node API (custom ESM loaders) is currently being redesigned and will still change [>]
Usage:
Pass --loader ./loader.js
to Node: node --loader ./loader.js index.ts
Example with Webpack: node --loader ./loader.js node_modules/webpack/bin/webpack serve -c build/config/development.ts