Compiled file served by webpacker is larger than the original file. So inorder to debug the problem, needed to figure out the default config by which webpacker is setup in the Rails app.
This is the enviroment
that is required from @rails/webpacker
.