Skip to content

Commit

Permalink
feat: Add path alias for client folder
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaksj329 committed Nov 5, 2024
1 parent 77582b4 commit f6425ee
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,13 @@
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
"noFallthroughCasesInSwitch": true,
// "noUncheckedSideEffectImports": true

"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["src/**/*.ts", "src/**/*.tsx", ".storybook/**/*", "vite.config.ts"]
}
6 changes: 6 additions & 0 deletions client/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import path from 'path';
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';

// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
});

0 comments on commit f6425ee

Please sign in to comment.