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

Provide support for named exports #117

Open
vladcosorg opened this issue Dec 26, 2022 · 3 comments
Open

Provide support for named exports #117

vladcosorg opened this issue Dec 26, 2022 · 3 comments

Comments

@vladcosorg
Copy link

The js tooling gradually drops interop compatibility for modules that don't provide named exports.
See vitest-dev/vitest#2544 (comment)

@szwacz
Copy link
Owner

szwacz commented Dec 27, 2022

Thank you, will look into it.

@szwacz
Copy link
Owner

szwacz commented Dec 28, 2022

Ok, so the main problem here is that fs-jetpack is written so it's always an instance of "directory object" and all methods belong to object with CWD as its' context, hence you can't simply import just one of them.

This can be fixed but not as an easy fix, what greatly fits the major rewrite narrative.

@vladcosorg
Copy link
Author

I appreciate investigating the issue! Will keep an eye on major rewrite updates 🚀

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