mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-29 07:01:44 +00:00
- Bump @hanzo/docs-mdx 14.2.11 -> 14.3.1 (surpass orphaned 14.3.0 on npm) - Bump @hanzo/docs-docgen 3.0.8 -> 3.1.1 (surpass orphaned 3.1.0 on npm) - Set changeset access to public for scoped @hanzo/* packages - Update create-app templates to use getPageMarkdownUrl() helper
21 lines
687 B
TypeScript
21 lines
687 B
TypeScript
import { type Config, defineConfig } from 'waku/config';
|
|
import mdx from '@hanzo/docs-mdx/vite';
|
|
import * as MdxConfig from './source.config.js';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
import tsconfigPaths from 'vite-tsconfig-paths';
|
|
import type { UserConfig } from 'vite';
|
|
|
|
export default defineConfig({
|
|
vite: {
|
|
// we do this to avoid Vite from bundling React contexts and cause duplicated contexts conflicts.
|
|
optimizeDeps: {
|
|
exclude: ['@hanzo/docs-base-ui', '@hanzo/docs-core'],
|
|
},
|
|
ssr: {
|
|
external: ['@takumi-rs/image-response'],
|
|
},
|
|
|
|
plugins: [tailwindcss(), mdx(MdxConfig), tsconfigPaths()],
|
|
} satisfies UserConfig as Config['vite'],
|
|
});
|