Skip to content

Commit

Permalink
feat: add vite config for the import alise
Browse files Browse the repository at this point in the history
  • Loading branch information
ktx-krupa committed Feb 3, 2025
1 parent 38186e8 commit eae4dd1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"dist",
],
"compilerOptions": {
"jsx": "preserve"
"jsx": "preserve",
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
}
}
}
10 changes: 10 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { defineConfig } from "vite";
import path from "path";

export default defineConfig({
resolve: {
alias: {
"@": path.resolve(__dirname, "src"),
},
},
});

0 comments on commit eae4dd1

Please sign in to comment.