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

Very good tip; thank you!