Content pfp
Content
@
0 reply
0 recast
0 reaction

Tony D’Addeo  pfp
Tony D’Addeo
@deodad
does anyone have strong opinions on bundling libraries made for use in the browser? what I've arrived at so far for @farcaster/frame-sdk is: - tsc to transpile to js for everyone developing in a modern JS stack - esbuild to out an iife to include directly in a script via CDN it seems stupidly simple I looked at micobundler, tsup, pkgroll but they all seemed to do more things than I wanted without any clear benefit
3 replies
7 recasts
41 reactions

Tony D’Addeo  pfp
Tony D’Addeo
@deodad
cc @nickcherry
1 reply
0 recast
1 reaction

Nick Cherry pfp
Nick Cherry
@nickcherry
if you don’t actually need to test in a browser (e.g. if it’s a crypto library) you might consider just using bun. most of the time, though, you’ll probs want the a basic local file server and hot reload. for those cases i tend to use vite, bc gives you the build step and the dev env w minimal config
1 reply
0 recast
2 reactions