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

Expose dependency graph to users #533

Closed
roman01la opened this issue Dec 25, 2019 · 5 comments
Closed

Expose dependency graph to users #533

roman01la opened this issue Dec 25, 2019 · 5 comments

Comments

@roman01la
Copy link

Hello! I'm exploring SWC as a base for a build tool. One of the things that I'd like to have, is a dependency graph starting at an entry point module. Ideally it could be separate CLI/API operation that emits dependency graph. Is this something SWC could have?

@kdy1
Copy link
Member

kdy1 commented Dec 25, 2019

@roman01la It would not be hard, but I doubt if it should be supported by swc.
Can you provide an usecase?

@kdy1
Copy link
Member

kdy1 commented Jan 6, 2020

I closed this by mistake

@nicksrandall
Copy link

@roman01la, I’m working on a similar tool. You can get this by generating an AST of the file and then searching for import declarations and then recursively searching those files for more imports.

@kdy1
Copy link
Member

kdy1 commented Mar 12, 2022

Closing as wontfix. This is too opinionated.

@kdy1 kdy1 closed this as completed Mar 12, 2022
@swc-bot
Copy link
Collaborator

swc-bot commented Oct 17, 2022

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@swc-project swc-project locked as resolved and limited conversation to collaborators Oct 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

4 participants