You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use @zerollup/ts-transform-paths for a React Native project. RN uses platform extensions such as .ios.tsx,.android.tsx,.native.tsx,.web.tsx to specify platform specific implementations of modules.
TS does not do a great job with these, so the solution is to do something like this with paths in your tsconfig.json
I'm trying to use
@zerollup/ts-transform-paths
for a React Native project. RN uses platform extensions such as.ios.tsx
,.android.tsx
,.native.tsx
,.web.tsx
to specify platform specific implementations of modules.TS does not do a great job with these, so the solution is to do something like this with
paths
in yourtsconfig.json
ref: microsoft/TypeScript#21926
Lets say I have a web and a native version of a component
App.native.tsx
andApp.web.tsx
, if import like thisand build with TS, it emits
which makes me sad.
This would make me happy...
Is this possible?
The text was updated successfully, but these errors were encountered: