Skip to content

💡 Support for custom element usage #1394

@filipxperi

Description

@filipxperi

Suggest an idea for Knip

We're using Lit, but I think that this topic applies to any custom element usage/framework.

The issue is that when registering a custom element you register it under a separate name than the class name.
And then you're free to use the registered element name in html.

The problem is that knip doesn't track these usages. Which in turn results in it marking all custom elements as unused.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions