snowballtools-base/packages/frontend/vite.config.ts

30 lines
699 B
TypeScript
Raw Normal View History

2024-04-11 21:40:22 +00:00
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
utils: "/src/utils",
assets: "/src/assets",
context: "/src/context",
components: "/src/components",
},
},
define: {
"process.env": "import.meta.env",
},
optimizeDeps: {
include: [
// "@snowballtools/types",
// "@snowballtools/utils",
// "@snowballtools/auth",
// "@snowballtools/auth-lit",
// "@snowballtools/smartwallet-alchemy-light",
// "@snowballtools/link-lit-alchemy-light",
// "@snowballtools/js-sdk",
],
},
});