Skip to content

Could Ember Inspector deobfuscate component names? #2469

Open

Description

@backspace

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 🤩

Activity

  1. RobbieTheWagner commented on Sep 27, 2023

    @RobbieTheWagner
    Member

    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.

  2. patricklx commented on Sep 28, 2023

    @patricklx
    Collaborator

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

  3. NullVoxPopuli commented on May 22, 2025

    @NullVoxPopuli
    SponsorContributor

    for how we want to solve this (perhaps via babel config), we'd also end up solving the "unknown template-only component" thing we see in development

  4. patricklx commented on May 22, 2025

    @patricklx
    Collaborator

    its already in ember-template-imports https://github.com/ember-cli/ember-template-imports/blob/master/src/babel-plugin.js
    i could not get it into the babel template compilation. but looks like there is some work on glimmer-vm to get better support for this

  5. NullVoxPopuli commented on May 22, 2025

    @NullVoxPopuli
    SponsorContributor

    ya -- so we're probably waiting on the great repo merge before that's all unblocked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions