entropyxyz / sdk

Official JavaScript SDK for Entropy blockchain.
GNU Affero General Public License v3.0
7 stars 0 forks source link

why are we bundling? #311

Open mixmix opened 2 months ago

mixmix commented 2 months ago

looks like tsup is making bundles of the source code which include all our dependencies

Questions:

  1. what is this aiming to achieve?
  2. why does the config have multiple entry points? (I could be naive)
        entry: [`src/index.ts`, 'src/keys/index.ts', 'src/utils/index.ts', 'src/utils/crypto.ts'],
  3. as it's written, it seems like regardless of whether I want browser code in here the bundle includes browser code. Is that write?

I get converting from ts => js / mjs I don't get why we want all the source code in all those chunks. It would seem to bloat the install, make our security audits look bad, and take bundling control away from me the end user?