ts-transformer-keys icon indicating copy to clipboard operation
ts-transformer-keys copied to clipboard

Support for babel-loader?

Open sandorvasas opened this issue 4 years ago • 2 comments

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

sandorvasas avatar Mar 12 '20 20:03 sandorvasas

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.

kimamula avatar Mar 13 '20 00:03 kimamula

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

saitonakamura avatar Apr 08 '21 08:04 saitonakamura