jsx / JSX

JSX - a faster, safer, easier JavaScript
http://jsx.github.io/
MIT License
1.46k stars 102 forks source link

Source Maps + Minification #340

Open bdkjones opened 8 years ago

bdkjones commented 8 years ago

I was very surprised to see a compiling error when I attempted to compile JSX with both the minify and enable-source-map option. All good JavaScript minifiers accept "input" source maps, which are then modified appropriately to reflect the minification.

Does the JS minifier that JSX uses not support that? If so, please consider switching to Uglify.js 2 as the minifier. It's far and away better than anything else out there, including Closure. It will happily accept an input source map, which will remove the limitation that sparked this issue.