Skip to content

Commit

Permalink
[New #151] Add tsconfigpath to resolve "@" paths
Browse files Browse the repository at this point in the history
  • Loading branch information
LaChope committed Jan 24, 2024
1 parent 58c2f75 commit 14d38ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"@vitejs/plugin-react": "^4.2.1",
"dotenv-webpack": "^8.0.1",
"ts-loader": "^9.4.4",
"vite-plugin-env-compatible": "^2.0.1"
"vite-plugin-env-compatible": "^2.0.1",
"vite-tsconfig-paths": "^4.3.1"
}
}
4 changes: 3 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import envCompatible from "vite-plugin-env-compatible";
import tsconfigPaths from 'vite-tsconfig-paths'

export default defineConfig({
base: "",
plugins: [
react(),
envCompatible()
envCompatible(),
tsconfigPaths()
],
define: {
"process.env": process.env
Expand Down

0 comments on commit 14d38ea

Please sign in to comment.