Shared manifest schema types for the evjs fullstack framework.
npm install @evjs/manifestDefines the structure of the manifest files emitted by @evjs/bundler-webpack and consumed by @evjs/client and @evjs/server. Two separate manifests are emitted during the build:
{
"version": 1,
"entry": "main.a1b2c3d4.js",
"fns": {
"<fnId>": {
"moduleId": "f9b6...",
"export": "getUsers"
}
}
}{
"version": 1,
"assets": {
"js": ["main.abc123.js"],
"css": ["main.def456.css"]
},
"routes": [
{ "path": "/" },
{ "path": "/posts/$postId" }
]
}ServerManifest— server manifest (dist/server/manifest.json) withentry,fns, and optionalrsc.ClientManifest— client manifest (dist/client/manifest.json) withassetsand optionalroutes.ServerFnEntry— server function metadata ({ moduleId, export }).RouteEntry— a discovered client route ({ path }).RscEntry— React Server Components (reserved for future).