ember-inspector icon indicating copy to clipboard operation
ember-inspector copied to clipboard

Could Ember Inspector deobfuscate component names?

Open backspace opened this issue 2 years ago • 5 comments

Is your feature request related to a problem? Please describe.

I noticed when looking at a production deployment names that the component names were obfuscated, which is likely to be a compression artefact:

Boxel 2023-09-20 15-48-19

Describe the solution you'd like

Could Ember Inspector detect the component name from the source maps somehow, if they exist?

Describe alternatives you've considered

In our case we’ll probably look for whatever production build setting is causing this obfuscation and turn it off.


Thanks for the ongoing work on this, it’s still indispensable after all these years 🤩

backspace avatar Sep 20 '23 20:09 backspace

Inspector relies on methods on Ember to give us the tree. I am not sure if we could somehow match what it gives us up with sourcemaps or not.

RobbieTheWagner avatar Sep 27 '23 20:09 RobbieTheWagner

I think at least glimmer could provide the names as specified in the template and not only extract it from the component instance

patricklx avatar Sep 28 '23 05:09 patricklx