Open kristianbinau opened 1 year ago
See @feat-packaged-node-tauri, this is a WIP.
Brain dump:
/dist
that seems like it only depends on /node_modules
and itself (/dist
).
node dist/server/entry.mjs
, this will start a node server.node, /node_modules, /dist
tauri dev
as this just uses the server that Astro starts.Maybe bun own compiler could work: https://bun.sh/docs/bundler/executables on first try this seems to work, but it can't find "node:fs"
Currently Tauri works, but only if we use
tauri dev
, this just opens ourlocalhost:4321
. But when we build we have to bundle all the necessary code and dependencies we need to run our project. When we build almost everything gets bundled except Node.Accepttest: