Exporting sourcemaps

Fixes #30
Where did this two condition go?