jspm / generator

JSPM Import Map Generator
Apache License 2.0
166 stars 21 forks source link

Support "uninstalling" packages #131

Closed vovacodes closed 2 years ago

vovacodes commented 2 years ago

One of the issues we've run into at Framer is being unable to remove a package from the import map. This causes unnecessary bloat. The API could look something like this:

const generator = new Generator({
        mapUrl: "about:blank",
        inputMap,
})

await generator.uninstall("lodash")

return generator.getMap()
guybedford commented 2 years ago

generator.uninstall is now implemented in https://github.com/jspm/generator/issues/132.