mirror of
https://github.com/vercel/streamdown.git
synced 2026-09-19 02:18:37 +08:00
62888665f8
* Add functional benchmarking suite * Optimize regex performance * Fix rendering issue with code blocks * Fix bench commands * Table optimizations * Math Block Detection Caching * Parse blocks optimizations * More regex-to-loop optimizations * Update layout.tsx * Remove dependency on vfile * Optimize string operations * Create markdown.test.tsx * Optimized cache key generation * Fix display issue * Add core Markdown parsing benchmarks * Update section.tsx * CSV / TSV escaping optimization * More optimizations * Run Ultracite * Fix remaining lint issues
29 lines
585 B
TypeScript
29 lines
585 B
TypeScript
import path from "node:path";
|
|
import react from "@vitejs/plugin-react";
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
test: {
|
|
environment: "jsdom",
|
|
globals: true,
|
|
setupFiles: ["./__tests__/setup.ts"],
|
|
coverage: {
|
|
reporter: ["text", "json", "html"],
|
|
exclude: [
|
|
"node_modules/",
|
|
"__tests__/",
|
|
"__benchmarks__/",
|
|
"*.config.ts",
|
|
"*.config.js",
|
|
"dist/",
|
|
],
|
|
},
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./"),
|
|
},
|
|
},
|
|
});
|