这是indexloc提供的服务,不要输入任何密码
Skip to content

🐛 Dynamic import members are marked as unused #1352

@remcohaszing

Description

@remcohaszing

Prerequisites

Reproduction url

https://github.com/remcohaszing/knip-repro-dynamic-import

Reproduction access

  • I've made sure the reproduction is publicly accessible

Description of the issue

entry.ts imports dynamically module.ts. It then logs the module.

If a module is imported dynamically, Knip will try to find out what members are unused. This is great. However, if the members are not analyzable, I think Knip should assume all members are used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions