Is --drop intended to only work with builtins? --drop does not remove a function I created myself. #14960
Unanswered
fredrik-hjarner
asked this question in
Q&A
Replies: 1 comment
-
|
i too would like to know. i've tested this thoroughly and haven't found a way to get bun to drop anything that is actually defined, which seems to make the feature only marginally useful |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Regarding --drop paramater. Documentation:
I was experimenting with --drop trying to remove a "debug-only" function, but noticed that "custom" functions will not be removed.
Is --drop intended to work only with/for builtins?
index.ts:
cmd:
bun build index.ts --drop="console" --drop="test" --drop="Bun" --drop="window"output:
Beta Was this translation helpful? Give feedback.
All reactions