Skip to content

Use @tagName only if ember-decorators dependency exists #77

Description

@Turbo87

While tagName = '' is only semi-officially supported, @tagName() appears to be the better alternative. Unfortunately it needs an additional dependency though, which some projects might prefer to avoid.

I would propose to check the project dependencies (similar to how we do it for ember-component-css), and only use @tagName when the project already has a dependency on ember-decorators. Additionally we could make it possible to override the detection with a CLI option, if necessary.

@simonihmig thoughts?

Activity

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions