allow watch with sourcemap

In terms of style, I dislike conditional function definition. Could you extract it and branch on `sourcemap` inside of the `doCompile` function?