Initial Commit

This commit is contained in:
2026-05-27 23:47:53 +01:00
parent fbc70f96e6
commit 9b28db724f
18103 changed files with 1600554 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
import { defineConfig } from "vite";
import dts from "vite-plugin-dts";
export default defineConfig({
build: {
lib: {
entry: {
index: "./src/index.ts",
"document/document": "./src/document/document.ts",
"page/page": "./src/page/page.ts",
"plan/plan-engine": "./src/plan/plan-engine.ts",
"plan/segment": "./src/plan/segment.ts",
"process/process-pipeline": "./src/process/process-pipeline.ts",
"process/block-processor": "./src/process/block-processor.ts",
"registry/op-registry": "./src/registry/op-registry.ts",
"stream/stream": "./src/stream/stream.ts",
"render/render": "./src/render/render.ts",
"stats/stats": "./src/stats/stats.ts",
"error-codes": "./src/error-codes/index.ts",
},
formats: ["es"],
},
sourcemap: true,
rollupOptions: {
external: [
/^@suaveplan\//,
/^@opentelemetry\//,
"zod",
"tslib",
],
},
outDir: "./dist",
},
plugins: [dts({ tsconfigPath: "./tsconfig.lib.json", entryRoot: "./src" })],
});