
Andrei O.
@andrei0x309
754 Following
1795 Followers
1 reply
0 recast
1 reaction
1 reply
0 recast
3 reactions
1 reply
0 recast
4 reactions
0 reply
0 recast
0 reaction
1 reply
0 recast
1 reaction
0 reply
0 recast
0 reaction
0 reply
1 recast
0 reaction
0 reply
0 recast
0 reaction
IMO, Bun bundler is rather mature to build a library, yet there are no lib templates out there that work.
I haven't found one that works including on Windows, so I made one myself so I can start using it for simple libraries.
It has a few features, like type declaration generation with rust, autofill package exports, degit command included, release command included, and other features, plus what I might add later.
A few notes about Bun Bundler:
It mainly supports 3 modes, browser, node, and bun, it only supports ESM mode, also for types declarations because they aren't supported by Bun, and because rust tooling only supports `isolatedDeclarations` ATM you need to do all types explicitly( in your lib code), maybe at some point later I would also add tsc as a config option in case you don't want to do explicitly all types at the cost of some marginal loss in performance when generating types.
https://github.com/andrei0x309/bun-lib-template-starter 0 reply
0 recast
1 reaction
0 reply
0 recast
3 reactions
1 reply
1 recast
5 reactions
1 reply
2 recasts
4 reactions
1 reply
0 recast
3 reactions
0 reply
0 recast
4 reactions
0 reply
1 recast
1 reaction
0 reply
0 recast
2 reactions
0 reply
0 recast
0 reaction
0 reply
0 recast
2 reactions
0 reply
0 recast
0 reaction
0 reply
0 recast
0 reaction