Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any example for use ts-node/register an babel-node/register #47

Open
MrKou47 opened this issue Jul 23, 2018 · 2 comments
Open

Any example for use ts-node/register an babel-node/register #47

MrKou47 opened this issue Jul 23, 2018 · 2 comments

Comments

@MrKou47
Copy link

MrKou47 commented Jul 23, 2018

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?

@marcj
Copy link

marcj commented Sep 4, 2020

It seems this isn't supported with ts-node.

@marcj
Copy link

marcj commented Sep 4, 2020

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']});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants