[Feature] add sourcemap generation

refs #47