Checking webpacker is cause of for time sink

I am new to this forum I hope I have posted in the right category. Please let me know if this is the wrong category or I am not following the right conventions.

Working on a ruby on rails application.

Let’s say I make a small change to any class file and make a request to some page on my application. Then my response times are increased by anywhere from 20 seconds to 2-3 minutes or more. The next request I make takes less than a second.

This issue happens only on local machine(not in production) when caching is turned off i.e this happens whenever config.cache_classes = false in development.rb is set to false.

I found out that one highly possible culprit for this time sink or delay is webpacker. How can I check if webpacker is the culprit for this time sink using the terminal log. If not possible with the terminal log, what are steps I can take to confirm that webpacker is responsible for the time sink.

I have already tried enabling config.file_watcher = ActiveSupport::EventedFileUpdateChecker in config/environments/development.rb The file_watcher setting resolved the issues when you are making only small 1-2 changes in your classes. If I am making many changes to many files at the same time(which is more realistic and likely) it makes the issue much worse. I had to wait close to 3 minutes for something that whould have taken 10-20 seconds without the setting change.

If you feel webpacker is not the culprit. Please share your thoughts. Thank you for your time.