Emurgo / cardano-serialization-lib

This is a library, written in Rust, for serialization & deserialization of data structures used in Cardano's Haskell implementation of Alonzo along with useful utility functions.
Other
234 stars 125 forks source link

Distribute as a single NPM package #657

Open klntsky opened 8 months ago

klntsky commented 8 months ago

browser field in a package.json allows to point the bundler to an alternative source specifically when bundling for the browser.

Therefore, CSL could be distributed as a single NPM package instead of -nodejs and -browser versions.

For example, we vendored CSL and did exactly that:

https://www.npmjs.com/package/@mlabs-haskell/cardano-serialization-lib-gc - see source package.json

lisicky commented 8 months ago

Hi @klntsky ! Thanks it's good idea to consider merging CSL into one package at least for nodejs and browser version. It's not priority for us now, but we will consider it. cc @vsubhuman