fix: add require.main
when using isolateModules
#10621
Merged
require.main
when using isolateModules
#10621