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

Support for babel-loader? #32

Open
sandorvasas opened this issue Mar 12, 2020 · 2 comments
Open

Support for babel-loader? #32

sandorvasas opened this issue Mar 12, 2020 · 2 comments

Comments

@sandorvasas
Copy link

Is there a way to get this working with babel-loader? Want to use it in a Create-React-App project which depends on babel-preset-react-app, which in turn depends on babel-typescript

@kimamula
Copy link
Owner

I am not familiar with babel-typescript, but if I understand correctly, it is likely that type checking is not available during TypeScript compilation with Babel.
As ts-transformer-keys uses TypeScript type checker to get keys of given type, I think it is not possible to use this transformer with Babel.

@saitonakamura
Copy link

It's possible if you create a program separately and then get position info from babel and then ask ts api about types and stuff

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

3 participants