Add support for sourcemaps with uglify2

Fixes #18341.