Y
Hacker News
new
|
ask
|
show
|
jobs
by
tombl
711 days ago
Bun.build actually has a `define:` option that does the same thing as your replace. If you use it, it'll even propagate the value, and treeshake away any `if(import.meta.hot)` you have.
1 comments
ToJans
711 days ago
Very good tip; thank you!
link