Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
tombl
· 2y ago · 0 comments
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.
Comments
[–]
ToJans
2y ago
Very good tip; thank you!