allow watch with sourcemap
rebuild & dist
refactor doCompile function
Merge branch 'pr/364'