Commit b7972b5
feat(bolt-vite-react-ts): add @/ path alias for src (#116)
* feat(bolt-vite-react-ts): add @/ path alias for src
Configure a depth-invariant @/* -> src/* alias in both tsconfig.app.json
(paths + baseUrl) and vite.config.ts (resolve.alias) so cross-module
imports can be written @/services/foo instead of ../../services/foo.
Removes the miscounted-relative-depth import errors that agents hit on
deep folder layouts.
* feat(bolt-vite-react-ts): steer imports to the @/ alias via template prompt
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: kj <kj@stackblitz.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 3af8e29 commit b7972b5
3 files changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
17 | 23 | | |
18 | 24 | | |
19 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
7 | 13 | | |
8 | 14 | | |
9 | 15 | | |
| |||
0 commit comments