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

Analyze Import after function #166

Closed
Deuscx opened this issue Apr 25, 2023 · 1 comment
Closed

Analyze Import after function #166

Deuscx opened this issue Apr 25, 2023 · 1 comment

Comments

@Deuscx
Copy link

Deuscx commented Apr 25, 2023

Environment

node v16

Reproduction

import { findStaticImports } from "mlly";

const [match0] = findStaticImports(`function a(){}import baz, { x, y as z } from 'baz'`);

console.log("🚀 ~ file: test.ts:5 ~ match0:", match0) // undefined

Describe the bug

the static import is after the function, can't find static imports

Additional context

No response

Logs

No response

@pi0 pi0 closed this as completed in 0d6b0b2 Jan 11, 2024
@pi0
Copy link
Member

pi0 commented Jan 11, 2024

Thanks for report will be fixed in next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants