jspm / generator

JSPM Import Map Generator
Apache License 2.0
160 stars 20 forks source link

Translate locks to default provider during input map extraction #249

Closed Bubblyworld closed 1 year ago

Bubblyworld commented 1 year ago

Currently during input map decomposition we create locks against whatever the provider for the package was when the import map was created. This leads to weird behaviour when you try and swap providers (i.e. going between nodemodules and jspm.io, for instance):

Screenshot 2023-03-03 at 10 26 22

If JSPM successfully parses an input into a lock, we should translate the lock to the default provider so that provider swapping is painless.