use esbuild to package mesh, remove fsave, add prod path overrides for esbuild files in prod server mode

This commit is contained in:
Stewart Allen 2025-06-23 21:17:01 -04:00
commit 10a107e518
8 changed files with 94 additions and 263 deletions

8
app.js
View file

@ -568,6 +568,14 @@ function handleVersion(req, res, next) {
} else {
return http.redirect(res, `${req.url}?ver:${vstr}`);
}
} else if (!debug) {
let { path } = req.app;
if (path === '/v2/lib/mesh/work.js') {
req.url = req.app.path = '/v2/lib/pack/work.js';
} else if (path === '/v2/lib/main/mesh.js') {
req.url = req.app.path = '/v2/lib/pack/mesh.js';
}
next();
} else {
next();
}