esm: convert resolve
hook to synchronous
#43363
+216
−127
Merged