Skip to content

feat(create): migrate React templates to package import aliases#384

Merged
tannerlinsley merged 1 commit intomainfrom
feat/react-imports-aliases
Feb 17, 2026
Merged

feat(create): migrate React templates to package import aliases#384
tannerlinsley merged 1 commit intomainfrom
feat/react-imports-aliases

Conversation

@tannerlinsley
Copy link
Member

Summary

  • migrate React template imports from @/ to package import aliases (#/) across base templates, add-ons, and examples
  • add "imports": { "#/*": "./src/*" } to generated React app package.json
  • keep compatibility for existing @/ imports by retaining tsconfig path mapping and vite-tsconfig-paths in generated React apps

Why

  • moves template code toward package-import aliases while preserving compatibility with upstream scaffold files that still reference @/
  • avoids breaking generated app builds during the transition

Validation

  • pnpm --filter @tanstack/create test
  • full pre-commit workspace build/test hooks
  • smoke scaffold + install + build using local CLI: --add-ons ai,tRPC,tanstack-query

Fixes #218

Release note

  • intentionally no changeset in this PR; batching release entries together as requested

@tannerlinsley tannerlinsley merged commit 2a6da38 into main Feb 17, 2026
2 checks passed
@tannerlinsley tannerlinsley deleted the feat/react-imports-aliases branch February 17, 2026 20:44
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.

[Feature] use package.json imports instead of tsconfig.json paths

1 participant

Comments