thlorenz/es6ify — pull request #54 by iwillig (2014-09-29 19:34:08+00:00)
Title: IW: Protect against null source maps

Please let me know if you guys would like a different solution to this issue. This is what
seemed to work for us, but might be considered too much of a hack.

There are situations where traceur will return null for the source map
property. For example, when using browserify's exclude flag, a temporary
but empty file is generated. es6ify will blow up on this file because it
always blindly assumes that there will be a sourcmap property. This
commit checks to see if the source map property exists before parsing
it. If there is no source map property, it just returns the source from
the compiled output.