esm: do not call getSource when format is commonjs
#50465
+69
−9
Merged