Repository navigation
feat: restore web3js exports - #382
ChiefWoods wants to merge 2 commits into
Conversation
d060cff to
b19ecb0
Compare
|
Hi there, thanks for the PR. There are a quite few implementation details that can be improved here (e.g. no need for
My recommendation, if supporting web3.js is desired moving forward, would be to create a new package such as |
Separate tsconfig files were added for explicit CJS-ESM handling when building.
That's fair, do you think the web3js package should be added as a sibling to |
|
IIRC, the way this package is created and published is pretty complex as it bundles various binaries. Having it in a separate repo would duplicate a lot of the CI work in this repo unfortunately so I'd see it more as a sibling. A cleaner alternative (which would be a much bigger refactoring though so likely out-of-scope) would be to only publish the generated internal LiteSVM class from this repo as something like |
|
@lorisleiva shall I open a separate new PR for the changes? it's bigger in scope, and is no longer committed on top of the above commits |
|
@ChiefWoods Sounds good, let's start from a fresh new PR and close this one. @Aursen Let us know which direction you like the most? One gets us to web3.js support quicker, the other makes LiteSVM more decoupled from JS frameworks but takes more work (and a new version of LiteSVM likely means bumping the framework-specific packages as well so there's a bit more ceremony). Perhaps a good middle-ground is having all three JS packages (core, Kit and Web3.js) inside this repo such that only the core package includes the binaries and the other two a small API wrappers that imports core. Having it inside the same repo means CI fails within the same commit if the framework-specific packages are not updated after a new version of LiteSVM core. But I'm just offering ideas here haha, ultimately it's for @Aursen to decide. |
|
Moved to #387 |
web3js and Kit can be optionally imported through split exports