Issue #3296481 by xjm, kostyashupenko, nod_: Update terser and terser-webpack-plugin to the latest versions (cherry picked from commit baf3e893)