mirror of
https://github.com/hanzoai/ui.git
synced 2026-11-20 20:07:34 +00:00
@hanzo/vite 0.1.5 adds site(): the App Router's file conventions (layouts, groups, dynamic and rest segments, generateStaticParams, metadata, not-found, route.ts GET, opengraph-image, robots, sitemap) rendered as React Server Components through @vitejs/plugin-rsc and written as HTML to out/. Pages import @hanzo/vite/link, /navigation, /dynamic and /metadata in place of next/*. mdx() reads posts with front matter, gfm, [#id] heading ids and a toc export. The head is resolved by the App Router's rules and written in its order; a key it does not render throws. Measured on hanzo.blog: 712 pages with identical text, head tags and <html lang dir> against its Next export. @hanzo/og 1.0.1 draws with satori 0.12.2, the layout its images were drawn against, and loads resvg from its own install at run time, since a bundler cannot carry a native addon. It no longer peers on next. The lockfile is regenerated over the whole workspace: main's predated @hanzo/commerce 7.9.1. Claude-Session: https://claude.ai/code/session_015XYKLnoSseGhXKoeBiFtQF
78 lines
2.0 KiB
JSON
78 lines
2.0 KiB
JSON
{
|
|
"name": "@hanzo/vite",
|
|
"version": "0.1.5",
|
|
"description": "The Vite config every Hanzo app shares, and the static site renderer: app/ to HTML, one runtime, one compiler, one way.",
|
|
"license": "MIT OR Apache-2.0",
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"./link": {
|
|
"types": "./dist/link.d.ts",
|
|
"default": "./dist/link.js"
|
|
},
|
|
"./navigation": {
|
|
"types": "./dist/navigation.d.ts",
|
|
"default": "./dist/navigation.js"
|
|
},
|
|
"./dynamic": {
|
|
"types": "./dist/dynamic.d.ts",
|
|
"default": "./dist/dynamic.js"
|
|
},
|
|
"./metadata": {
|
|
"types": "./dist/metadata.d.ts",
|
|
"default": "./dist/metadata.js"
|
|
}
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"prepublishOnly": "node ../../scripts/guard-publish.mjs",
|
|
"build": "tsc -p tsconfig.json",
|
|
"test": "vitest run"
|
|
},
|
|
"peerDependencies": {
|
|
"vite": ">=8",
|
|
"react": ">=19.2",
|
|
"react-dom": ">=19.2",
|
|
"react-server-dom-webpack": ">=19.2"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "catalog:",
|
|
"@types/react": "catalog:",
|
|
"@types/react-dom": "catalog:",
|
|
"react": "catalog:",
|
|
"react-dom": "catalog:",
|
|
"react-server-dom-webpack": "19.2.8",
|
|
"typescript": "catalog:",
|
|
"vite": "catalog:",
|
|
"vitest": "catalog:"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/hanzoai/ui.git",
|
|
"directory": "pkg/vite"
|
|
},
|
|
"dependencies": {
|
|
"@hanzo/source": "workspace:*",
|
|
"@mdx-js/rollup": "^3.1.1",
|
|
"@vitejs/plugin-react": "catalog:",
|
|
"@vitejs/plugin-rsc": "0.5.39",
|
|
"estree-util-value-to-estree": "^3.5.0",
|
|
"github-slugger": "^2.0.0",
|
|
"remark-frontmatter": "^5.0.0",
|
|
"remark-gfm": "^4.0.1",
|
|
"remark-mdx-frontmatter": "^6.0.0",
|
|
"rsc-html-stream": "0.0.8",
|
|
"unist-util-visit": "^5.2.0"
|
|
}
|
|
}
|