Investigate production bundle size (>600k?!)
Post Rails 7:
bundle exec bin/webpack --mode="production"
bundle exec bin/webpack --profile --json > stats.json
yarn run webpack-bundle-analyzer stats.json public/packs/
rm stats.json
old:
bundle exec bin/webpack --mode="production"
cp public/packs/application-<hash>.js .
bundle exec bin/webpack --profile --json --mode="production" > stats.json
yarn run webpack-bundle-analyzer stats.json
whybundled stats.json
https://webpack.github.io/analyse/#modules
bn.js and elliptical were both being required because of old version vendered version of seed_random.js that required npm's crypto lib.

Before seed random fix:
application-72caa8338adf3ef56235.js (805 KiB)
After:
application-3f1fa05da728c3318f79.js (462 KiB)
Bundle situation afterwards:
Before in production:

After in production:

Changed gsap import style to get under 100kb zipped https://github.com/sudara/alonetone/commit/4005082f70940336d15190b8a0cf87b38a885456

rails6rc2
-rw-r--r-- 1 sudara staff 373K Dec 9 22:29 application-af7e003efad5bc86ad31.js
99.5kb as of Rails 6.1
Just for tracking purposes
After updating to Rails 7 and Turbo and setting to "not IE 11"