Post

Bun
Bun@bunjavascript·
In the next version of Bun Bun gets compile-time feature flag support with dead-code elimination
Bun tweet media
English
37
36
1.2K
199.2K
Bun
Bun@bunjavascript·
If you use these feature() checks outside of if statements or ternary expressions, you'll get an error at build-time. This makes it harder to mistakenly include code that you meant to remove.
Bun tweet media
English
0
0
87
10.5K
sasuke⚡420
sasuke⚡420@sasuke___420·
@bunjavascript @alistaiir This is a macro system. I don't understand why you want to include one macro system that is too weak to do this and another macro system that is too weak to do anything else.
English
0
0
0
3.5K
Jake
Jake@jakebodea·
@bunjavascript @alistaiir This is great! What’s the best way to use the same API for runtime? vs compile time
English
0
0
0
449
jacob
jacob@zagoorland·
@bunjavascript @alistaiir Please add a functionality to analyze exported functions that are not used anywhere
English
0
0
0
1.3K
Marian Pop 🪐
Marian Pop 🪐@marianvpop·
@bunjavascript @alistaiir Dead code elimination at compile time means smaller bundles without the runtime overhead. Perfect for feature-gating in production builds.
English
0
0
0
311
Pablo | Dev
Pablo | Dev@pababalle·
@bunjavascript @alistaiir Feature flags are underrated until you scale execution paths. Dead-code elimination just makes the whole flow cleaner.
English
0
0
0
808
Paylaş