I would change this if into: 
if (serverConf.enableMinification &&  component.id === componentId && component.version === version)