mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
```ts
// a.js
console.log({
argv: process.argv,
execArgv: process.execArgv,
});
```
```diff
$> node a.js -a --b
{
argv: [
'/opt/homebrew/Cellar/node/24.2.0/bin/node',
'/tmp/a.js',
'-a',
'--b'
],
execArgv: []
}
$> bun a.js -a --b
{
argv: [ "/Users/pfg/.bun/bin/bun", "/tmp/a.js",
"-a", "--b"
],
execArgv: [],
}
$> bun build --compile a.js --outfile=a
[5ms] bundle 1 modules
[87ms] compile
$> ./a -a --b
{
argv: [ "bun", "/$bunfs/root/a", "-a", "--b" ],
- execArgv: [ "-a", "--b" ],
+ execArgv: [],
}
```
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1.9 KiB
1.9 KiB