Call shouldGenerateSourceMap
only once
#4104
Merged
shouldGenerateSourceMap
only once
#4104