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

parser: include module name in exports returned by moduleLexer #7039

Closed
filipsobol opened this issue Oct 31, 2024 · 0 comments · Fixed by #7103
Closed

parser: include module name in exports returned by moduleLexer #7039

filipsobol opened this issue Oct 31, 2024 · 0 comments · Fixed by #7103
Labels
C-enhancement Category - New feature or request

Comments

@filipsobol
Copy link

Would it be possible to include the module name in exports returned from the moduleLexerAsync/moduleLexerSync methods, similar to the imports array?

I'm using the oxc-parser npm package to list all used external dependencies, and moduleLexerAsync/moduleLexerSync already covers most of my needs. However, because the exports doesn't include module name/path, I cannot detect dependencies like this:

export * from 'external-dependency';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category - New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants