fix: normalize model-visible images with Pi processing
This commit is contained in:
@@ -78,6 +78,11 @@ const nextConfig: NextConfig = {
|
||||
// npm installs only the current platform's binary, so this glob
|
||||
// resolves to exactly one Skia binary per build.
|
||||
"node_modules/@napi-rs/canvas-*/**/*",
|
||||
// Pi-compatible image resizing runs in an unbundled worker. Photon
|
||||
// loads its colocated WASM through Node, also in packaged Electron.
|
||||
"src/agent/image-processing/*.mjs",
|
||||
"src/agent/image-processing/LICENSE",
|
||||
"node_modules/@silvia-odwyer/photon-node/**/*",
|
||||
// Wave E stage 2: resvg rasterizes visual-maker SVGs natively; same
|
||||
// per-platform-binary story as the canvas above (one per build).
|
||||
"node_modules/@resvg/resvg-js-*/**/*",
|
||||
@@ -106,6 +111,7 @@ const nextConfig: NextConfig = {
|
||||
"@earendil-works/pi-agent-core",
|
||||
"pdfjs-dist", // sources v0: bundling breaks its node fake-worker path
|
||||
"@napi-rs/canvas", // native binding — bundling breaks the .node require
|
||||
"@silvia-odwyer/photon-node", // CJS loads its adjacent WASM from disk
|
||||
"@resvg/resvg-js", // native binding — same
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user