We currently have around two dozen packages, and interdependencies between them are hard to track. For instance, we already agreed on merging some of them like l2-block and tx into a single one, but we can go further.
Review the list of packages we have today, make a new proposal, get buy in, and implement it. Things to consider:
- Which packages map to low-level repos (eg bb, circuits.js)
- Which packages have shared code vs entrypoints (consider moving them to separate parent folders, as suggested here)
- Which packages will eventually run on the browser, on node, or both
A modern alternative is bundling everything in 1-2 major packages, and make an aggressive use of namespaces, and rely on tree shaking from consumers for reducing bundle size.
We currently have around two dozen packages, and interdependencies between them are hard to track. For instance, we already agreed on merging some of them like l2-block and tx into a single one, but we can go further.
Review the list of packages we have today, make a new proposal, get buy in, and implement it. Things to consider:
A modern alternative is bundling everything in 1-2 major packages, and make an aggressive use of namespaces, and rely on tree shaking from consumers for reducing bundle size.