esm: do not call getSource
when format is commonjs
#50465
Merged
getSource
when format is commonjs
#50465