Skip to content

docs(bolt-vite-react-ts): clarify @/ alias mapping in template prompt#117

Merged
kocopelly merged 2 commits into
mainfrom
kj/clarify-alias-prompt-wording
Jul 20, 2026
Merged

docs(bolt-vite-react-ts): clarify @/ alias mapping in template prompt#117
kocopelly merged 2 commits into
mainfrom
kj/clarify-alias-prompt-wording

Conversation

@kocopelly

Copy link
Copy Markdown
Contributor

Follow-up to #116, per julio's review: the (@/components/Foo, maps to src/) phrasing read as if the whole path maps to src/. Reworded so the alias→root mapping is stated first and the import is the example:

Import project modules with the @/ path alias, which maps to src/ (e.g. @/components/Foo), instead of deep relative paths like ../../components/Foo.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Comment thread bolt-vite-react-ts/.bolt/prompt Outdated
Use icons from lucide-react for logos.

Import project modules with the `@/` path alias (`@/components/Foo`, maps to `src/`) instead of deep relative paths like `../../components/Foo`.
Import project modules with the `@/` path alias, which maps to `src/` (e.g. `@/components/Foo`), instead of deep relative paths like `../../components/Foo`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e.g. @/components/Foo == "src/components/Foo"

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@kocopelly
kocopelly requested a review from julionav July 20, 2026 14:17
@kocopelly
kocopelly merged commit 8538c70 into main Jul 20, 2026
3 checks passed
@kocopelly
kocopelly deleted the kj/clarify-alias-prompt-wording branch July 20, 2026 14:18
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

Successfully merging this pull request may close these issues.

2 participants