mirror of
https://github.com/JOYCEQL/magic-resume.git
synced 2026-05-06 13:51:33 +08:00
27 lines
529 B
TypeScript
27 lines
529 B
TypeScript
import { defineConfig } from "vite";
|
|
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
|
|
import viteReact from "@vitejs/plugin-react";
|
|
import tsconfigPaths from "vite-tsconfig-paths";
|
|
|
|
export default defineConfig({
|
|
server: {
|
|
port: 3000
|
|
},
|
|
optimizeDeps: {
|
|
exclude: ["pdfjs-dist"]
|
|
},
|
|
ssr: {
|
|
noExternal: ["pdfjs-dist"]
|
|
},
|
|
plugins: [
|
|
tsconfigPaths(),
|
|
tanstackStart({
|
|
srcDirectory: "src",
|
|
router: {
|
|
routesDirectory: "routes"
|
|
}
|
|
}),
|
|
viteReact()
|
|
]
|
|
});
|