TypeScript 7 · tsconfig options
Set up import aliases
Map an alias such as @/utils to a folder. Your bundler needs the same alias.
"baseUrl": ".",
"paths": { "@/*": ["src/*"] }
Official TypeScript 7 documentation
TypeScript 7 · tsconfig options
Map an alias such as @/utils to a folder. Your bundler needs the same alias.
"baseUrl": ".",
"paths": { "@/*": ["src/*"] }
Official TypeScript 7 documentation
Was this page helpful?