# refactor\(mobile\): add a robust @/ import alias for apps/mobile/src · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/2efab1e0defdfd5c4de78fc718a3eb2dca21653c)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 2efab1e0defdfd5c4de78fc718a3eb2dca21653c

Requested commit: 2efab1e0defdfd5c4de78fc718a3eb2dca21653c

Commit: 2efab1e0defdfd5c4de78fc718a3eb2dca21653c

Tree: 3e8bb4fbbc8c923d1cf7fb0f0f4652bc7368d890

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
refactor(mobile): add a robust @/ import alias for apps/mobile/src

Mobile has 100+ imports at ../../../ depth and no alias to shorten them,
while web resolves ~/* to its src. Add "@/*" tsconfig paths plus a Metro
resolveRequest alias (extraNodeModules cannot host it: Metro parses
"@/foo" as the scoped package "@/foo"), mirror it for vitest in the root
vite config, and migrate a bounded set of representative deep imports.

Co-authored-by: Apex <noreply@callstack.com>

```

## Parents

- [d7819c18813fa03b033cc1c9472c9acc0ffc0618](https://git.cafe/pingdotgg/t3code/commit/d7819c18813fa03b033cc1c9472c9acc0ffc0618?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/2efab1e0defdfd5c4de78fc718a3eb2dca21653c?format=markdown)
