Take the file bundle.js from Vivaldi installation. 3.7Mb.
bundle.zip
I format this file by 'CudaFormatter plugin for CudaText' with 'Formatter for JS and JSON'. It uses this engine (v1.15.3).
https://github.com/CudaText-addons/cuda_fmt_js
Time to format is about 1 minute on CPU Intel core i3 3GHz. Why so long? Can formatter be faster?