-
Notifications
You must be signed in to change notification settings - Fork 3.9k
implement --no-addons flag and "node-addons" export condition
#19530
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
Conversation
|
Updated 12:33 PM PT - May 8th, 2025
❌ @dylan-conway, your commit 3b776f9 has 1 failures in 🧪 To try this PR locally: bunx bun-pr 19530That installs a local version of the PR into your bun-19530 --bun |
| var transform_options = this.parent.transpiler.options.transform_options; | ||
|
|
||
| if (this.execArgv) |exec_argv| parse_new_args: { | ||
| var new_args: std.ArrayList([]const u8) = try .initCapacity(bun.default_allocator, exec_argv.len); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we should convert the string impls to [] const []const u8 so we don't need to hold onto them. process.execArgv will cache the result, so this way we don't hold onto them in two places
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nvm, not doing this. parsing the new execArgv will only happen once
What does this PR do?
fixes
test-no-addons-resolution-condition.jsHow did you verify your code works?
added a new test for throwing
ERR_DLOPEN_DISABLED