pirates
pirates copied to clipboard
Any example for use ts-node/register an babel-node/register
I am trying to use ts-node/register -> babel-register to ensure my code can compiled with babel-plugin. Finally i find this repository.Could you provide an example for realize this goal?
It seems this isn't supported with ts-node.
Oh, nevermind it works. For ts-node you just have to use additionally .tsx and .ts extensions, e.g.
addHook(transform, {exts: ['.js', '.tsx', '.ts']});