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

add exports information for reexported modules #14711

Open
spamshaker opened this issue Oct 21, 2024 · 0 comments
Open

add exports information for reexported modules #14711

spamshaker opened this issue Oct 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@spamshaker
Copy link

What is the problem this feature would solve?

const transpiler = new Bun.Transpiler({
  loader: 'tsx'
})
const oops = transpiler.scan(`export * from './internal'`);

console.log(oops);
result:
{
  exports: [],
  imports: [
    {
      kind: "import-statement",
      path: "./internal",
    }
  ],
}

What is the feature you are proposing to solve the problem?

I am trying to find a way to build dependency tree to detect circular references
the criteria is that it must be fast and handle only this functionality. I know there is madge but it fails with typescript paths and it uses eslint under the hood.
To do that I need a real export which module does. So my question is if it can return the reexported values

What alternatives have you considered?

No response

@spamshaker spamshaker added the enhancement New feature or request label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant