mirror of
https://github.com/jakejarvis/stanza.git
synced 2026-07-16 18:05:58 -04:00
28 lines
885 B
TypeScript
28 lines
885 B
TypeScript
import tailwindcss from "@tailwindcss/vite";
|
|
import { devtools } from "@tanstack/devtools-vite";
|
|
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import mdx from "fumadocs-mdx/vite";
|
|
import { nitro } from "nitro/vite";
|
|
import { defineConfig, lazyPlugins } from "vite-plus";
|
|
|
|
export default defineConfig({
|
|
plugins: lazyPlugins(() => [
|
|
mdx(),
|
|
devtools(),
|
|
tailwindcss(),
|
|
tanstackStart(),
|
|
react(),
|
|
nitro({ serverAssets: [{ baseName: "registry", dir: "public/registry" }] }),
|
|
]),
|
|
resolve: {
|
|
tsconfigPaths: true,
|
|
alias: {
|
|
// tslib's CJS UMD sets __esModule: true without providing a default
|
|
// export, which breaks Vite 8 / Rolldown's consistent CJS interop.
|
|
// Alias to the native ESM build to avoid the interop entirely.
|
|
tslib: "tslib/tslib.es6.mjs",
|
|
},
|
|
},
|
|
});
|