Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bolt-vite-react-ts/.bolt/prompt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ For all designs I ask you to make, have them be beautiful, not cookie cutter. Ma
By default, this template supports JSX syntax with Tailwind CSS classes, React hooks, and Lucide React for icons. Do not install other packages for UI themes, icons, etc unless absolutely necessary or I request them.

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`.
6 changes: 6 additions & 0 deletions bolt-vite-react-ts/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
"noEmit": true,
"jsx": "react-jsx",

/* Path alias — depth-invariant imports for src (@/foo === src/foo from any file) */
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
},

/* Linting */
"strict": true,
"noUnusedLocals": false,
Expand Down
6 changes: 6 additions & 0 deletions bolt-vite-react-ts/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { fileURLToPath, URL } from 'node:url';

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
optimizeDeps: {
exclude: ['lucide-react'],
},
Expand Down