single-spa / import-map-deployer

A manifest deployment service for sofe/import maps
Apache License 2.0
191 stars 63 forks source link

fix: alphabetical sort method now handles missing data better #125

Closed TheMcMurder closed 2 years ago

TheMcMurder commented 2 years ago

We had a small error where one of our import-maps didn't have a "scope" property and using alphabetical: true threw errors. Correcting the data was enough to fix it but I thought I would be nice to also handle this better and clean up the code a bit.