+
Skip to content

.import() wrongly detected as ESM sytax #288

Open
@Kolobok12309

Description

@Kolobok12309

Environment

node v18.18.0
mlly 0.5.17

Reproduction

findDynamicImports(`const BlockEmbed = Quill.import('blots/block/embed');
  const foo = timport('foo');`)

Describe the bug

In out project we use quill-editor that have import function for export some functionality (Quill.import('blots/block/embed')), mlly detect it as esm import

For testing i try some another name function as timport and it also worked as import

Additional context

No response

Logs

No response

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

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载