Matsuuu / web-component-devtools

Web Component DevTools is a Browser Extension enhancing the development experience of Web Component developers
https://matsuuu.github.io/web-component-devtools/
MIT License
131 stars 3 forks source link

[Feature Request]: Consider bringing back the CEM lookup #29

Closed Matsuuu closed 3 years ago

Matsuuu commented 3 years ago

As @open-wc/create is now updated, and they're adding the analyzer to the starter, it might be worth considering to add the CEM lookup to the analyzer. This could be done in the same bunch in which we go through node_modules.

It could look up paths from the root till the current page url.

e.g.

http:localhost:8080/custom-elements.json
http:localhost:8080/foo/custom-elements.json
http:localhost:8080/foo/bar/custom-elements.json
Matsuuu commented 3 years ago

Implemented the lookup like described. Leaving open in case I come up with other ways that would be useful