Skip to content

Conversation

@posva
Copy link
Member

@posva posva commented Sep 18, 2020

This is quite a lot but the important part is to make @vue/devtools-api tree shakable by exporting an ESM version of the library as well as changing some of the enums. But I thought exposing only one version was not really viable, that's why I added rollup to create multiple versions. We can also add common js version.

This probably needs some discussion. I kind fell like adding rollup is overkill but maybe it's necessary to be able to use it in different scenarios (bundlers, browsers)

@posva
Copy link
Member Author

posva commented Oct 7, 2020

I simplified the PR by removing rollup. These changes effectively make the devtools fully tree shakable. I tested it on the router on the branch feat/devtools

@Akryum Akryum merged commit 5b7797b into next Oct 19, 2020
@Akryum Akryum deleted the feat/bundling-api branch October 19, 2020 16:35
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 this pull request may close these issues.

2 participants