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

explicitly export "main" : "index.json" to support importing from node versions <= 12.7 #1

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

reaganr
Copy link
Owner

@reaganr reaganr commented Sep 5, 2023

Node versions < 12.7 can't import non-.js files (such as .json) that aren't explicitly exposed from the package.json using "main" or similar explicit export properties.

@reaganr reaganr merged commit fe9a6a4 into master Sep 5, 2023
@reaganr reaganr deleted the fix/add-explicit-json-exportt branch September 5, 2023 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant