update util.resolve to support js variants
update util.resolve to support js variants

JimChenAnother/fly,andrewsokolov/fly,iamstarkov/fly,halhenke/fly,yang-wei/fly,Aweary/fly,kashiro/fly,silverbux/fly,MadcapJake/fly,JimChenAnother/fly,DigitalCoder/fly,MadcapJake/fly,elton0895/fly,yang-wei/fly,alandipert/fly,iamstarkov/fly,Aweary/fly,dieface/fly,SerkanSipahi/fly,MadcapJake/fly,iamstarkov/fly,kesne/fly,elton0895/fly,DigitalCoder/fly,dieface/fly,alandipert/fly,DigitalCoder/fly,Aweary/fly