diff --git a/vite.config.ts b/vite.config.ts index 49f108d..74e03d8 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,5 +1,8 @@ import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; +// This enables absolute imports like `import { useOidc } from "oidc";` +// instead of `import { useOidc } from "../../oidc";` +// You also need to add "compilerOptions": { "baseUrl": "src" } in your tsconfig.json for it to work import tsconfigPaths from "vite-tsconfig-paths"; import { viteEnvs } from "vite-envs"; import { TanStackRouterVite } from "@tanstack/router-vite-plugin";