Content pfp
Content
@
https://opensea.io/collection/dev-21
0 reply
0 recast
2 reactions

Andrei O. pfp
Andrei O.
@andrei0x309
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