fix: correct type for loaderContext.importModule
#8766
Merged
loaderContext.importModule
#8766