bun standalone executable #3025
Jean-FrancoisTrevien
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the feature
I first posted this issue on Nuxt (#30719), but they think it's better to post it to you.
I am trying to make a standalone exec from a nuxt project and with the bun build i am very near of that.
Nuxt generate in the .output directory a public folder that contain the client ressources.
They are stored in an object assets$1 each entry look like that:
"/_nuxt/BB2exe0s.js": {
"type": "text/javascript; charset=utf-8",
"etag": ""3109e-DG4tcbVtEKXfMzM9RB4FDc6EuIs"",
"mtime": "2025-01-22T13:09:25.457Z",
"size": 200862,
"path": "../public/_nuxt/BB2exe0s.js"
},
A function readAsset(id) use this object to resolve the asset.
It will be welcomed if instead of storing the path of the object we have an option for storing a base64 of the file and modify readAsset accordingly for serving the asset.
It will suffice in bun setting for generating a standalone executable and perhaps in other setting
Additional information
Beta Was this translation helpful? Give feedback.
All reactions