Pass type ("script" or "module") from resolve hook to fetch hook.