Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support "uninstalling" packages #131

Closed
vovacodes opened this issue May 20, 2022 · 1 comment · Fixed by #134
Closed

Support "uninstalling" packages #131

vovacodes opened this issue May 20, 2022 · 1 comment · Fixed by #134

Comments

@vovacodes
Copy link
Contributor

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
Copy link
Member

generator.uninstall is now implemented in #132.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants