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

--exportDefault generates default exports eventhough there are none #606

Open
simpel opened this issue Nov 13, 2023 · 3 comments · May be fixed by #633
Open

--exportDefault generates default exports eventhough there are none #606

simpel opened this issue Nov 13, 2023 · 3 comments · May be fixed by #633

Comments

@simpel
Copy link

simpel commented Nov 13, 2023

Describe the bug
When turning on --exportDefault it returns a default export for all files even if the file itself has no default export. This is a issue since only some of my files has default exports.

To Reproduce
Steps to reproduce the behavior:

  1. create a project
  2. Create some files and mix default exports and non defaults
  3. run barrelsby with --exportDefault
  4. All files in the index file gets a default export eventhough some does not have it

Expected behavior
only export default exports when they're available

Screenshots
image

@simpel simpel added the bug label Nov 13, 2023
@alexalexandrescu alexalexandrescu linked a pull request Mar 8, 2024 that will close this issue
Copy link

No activity has been seen recently, marking as stale. If this is a mistake please reach out to a collaborator

@BitForger BitForger linked a pull request Apr 3, 2024 that will close this issue
@maliyshock
Copy link

I also have this. Any updates?

Copy link

github-actions bot commented Oct 9, 2024

No activity has been seen recently, marking as stale. If this is a mistake please reach out to a collaborator

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

Successfully merging a pull request may close this issue.

2 participants