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

require statement is not detected by madge #385

Open
yesgp opened this issue Jul 21, 2023 · 0 comments
Open

require statement is not detected by madge #385

yesgp opened this issue Jul 21, 2023 · 0 comments

Comments

@yesgp
Copy link

yesgp commented Jul 21, 2023

I am trying to check the circular dependencies using madge command as follows. But madge is skipping require statement and not listing the dependency.

Command that was ran:

madge --extensions ts -i test.svg . > log2.txt
Eg. Below line is present in a typescript file. but, module1 was not listed in dependencies list.

const { myconstant } = require("../module1");

Any idea how to make madge look for require statement as well along with import?

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

1 participant