Skip to content

Add index for folder export with extension provided #34

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sharky98
Copy link

Just updated and the file extension work like a charm! But, the folder are still missing. Here a quick pull request that should do the trick.

When using an extension, the folder export must explicitly call the index.js file inside the folder.

// export * from "./folder"; // Wrong folder export
export * from "./folder/index.js"; // Good folder export
export * from "./file.js"; // Good file export

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

Successfully merging this pull request may close these issues.

1 participant