Skip to content

Commit

Permalink
update vite to use vite-tsconfig-paths to support ts aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
datadanne committed Sep 25, 2023
1 parent 7e1c44b commit d63490b
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 3 deletions.
48 changes: 47 additions & 1 deletion garage/package-lock.json

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

3 changes: 2 additions & 1 deletion garage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"typescript": "^5.1.3",
"vite": "^4.3.2",
"vite-plugin-ejs": "^1.6.4",
"vite-plugin-svgr": "^2.4.0"
"vite-plugin-svgr": "^2.4.0",
"vite-tsconfig-paths": "^4.2.1"
}
}
3 changes: 2 additions & 1 deletion garage/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ import { defineConfig } from "vite";
import { ViteEjsPlugin } from "vite-plugin-ejs";
import svgr from "vite-plugin-svgr";
import react from "@vitejs/plugin-react";
import tsconfigPaths from "vite-tsconfig-paths";

// https://vitejs.dev/config/
export default defineConfig({
plugins: [svgr(), react(), ViteEjsPlugin()],
plugins: [svgr(), react(), ViteEjsPlugin(), tsconfigPaths()],
optimizeDeps: {
exclude: ["@tableland/sqlparser"],
},
Expand Down

0 comments on commit d63490b

Please sign in to comment.