waku-org / js-waku

JavaScript implementation of Waku v2
https://js.waku.org
Apache License 2.0
162 stars 41 forks source link

Review bundler #579

Open D4nte opened 2 years ago

D4nte commented 2 years ago

Problem

  1. We use rollup for production bundling but use webpack to bundle for karma
  2. We use tsc for code transpilation, other tools such as parcel and vite provide faster result (and vite includes rollup and claim to make the configuration easier).

Goal

Simplify the configuration by using a single bundler across the project (1). Check if more modern/upcoming solutions helps streamline the process (ie, parcel, vite vs tsc).

Proposed solutions

a. Review how karma can work with vilte or rollup b. Check if parcel, vite or esbuild can be used instead of tsc and what would be the gains c. Review what aegir (used by libp2p) can bring in.

Notes

https://github.com/status-im/status-web/pull/227#issuecomment-1049950154

D4nte commented 2 years ago

Draft parcel PR: #747

fryorcraken commented 1 year ago

Marked as good first issue because it does not involve knowledge of js-waku codebase, just knowledge of bundler and transpiler and other ci/build/test tools.

fryorcraken commented 1 year ago

Should be done with #1008 in mind

fryorcraken commented 1 year ago

Other problems: