fix(sourcemap): use settings to check if sourcemaps will be generated