Don't write sourceMap if disabled in config

Sourcemaps are invalid if "modules.sourceMaps" are disabled so don't write it