Pass option to write sourcemap but also assign sourcemap property if sourcemap is available in the file