Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot set node options #111

Open
jstewart3802 opened this issue Dec 4, 2024 · 3 comments
Open

Cannot set node options #111

jstewart3802 opened this issue Dec 4, 2024 · 3 comments

Comments

@jstewart3802
Copy link

I cannot see a way in documentation to set the node options like --max-old-space-size to allow the app to use more ram.

Is this functionality missing from node SEA, or is there an undocumented way to set this option when creating a SEA?

@cspotcode
Copy link

Deno might work:

$ deno compile -A --v8-flags="--max-old-space-size=12345" --output ./myclitool ./myclitool.ts
$ ./myclitool

@GabenGar
Copy link

That's not a node SEA solution,

@cspotcode
Copy link

It's not, and it's a good solution for anyone wanting to build a nodejs codebase to a single executable. If you have a codebase written against nodejs APIs, and it runs on deno, you can compile it to a single executable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants