mrdoob/three.js — pull request #2654 by zz85 (2012-11-20 16:08:31+00:00)
Title: Sourcemaps

As mentioned in #2465 adding closure sourcemaps support to build.py

Use `--sourcemaps` flag with build.py to enable source maps

A `three.js.map` will be added to `builds/`

The minified script will be appended with sourceMappingURL to link to the .map files.

Instead of compiling from concatenated sources, I've made the script compile from respective individual source - this allows the minified source to link to the original source files.

Enable sourcemaps in your browser, and breakpoints can be set on the unminified source.

If this is useful, maybe node.js build script could support sourcemaps with uglifyjs2