Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.import() wrongly detected as ESM sytax #288

Open
Kolobok12309 opened this issue Nov 26, 2024 · 0 comments
Open

.import() wrongly detected as ESM sytax #288

Kolobok12309 opened this issue Nov 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Kolobok12309
Copy link

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

@Kolobok12309 Kolobok12309 added the bug Something isn't working label Nov 26, 2024
@pi0 pi0 changed the title Wrong behavior for word import in code .import() wrongly detected as ESM sytax Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant