Async sourcemap generator

Added an option that enable the user to generate the source map
asynchronously. Useful when developing and bundling.