farooqkz / chooj

Matrix chat app for KaiOS feature phones supporting voice calls
74 stars 13 forks source link

Reduce bundle size #67

Closed farooqkz closed 1 year ago

farooqkz commented 1 year ago

Currently, parcel is the build system chooj uses. When targeting FF48, parcel tries to create a bundle which works on FF48 newer browsers. FF48 does not support JS modules but most newer browsers do. So parcel creates two sets of JS assets for module and nomodule. And the module JS assets never get used in KaiOS 2.x.

Related issue:

https://github.com/parcel-bundler/parcel/issues/8783

Simon-Laux commented 1 year ago

maybe just add a small script that removes the html tag and the file "manually" from the bundle, that way we would not need wait for any solutions from parcel.