Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix(#140,#168): Define package.json export #169

Closed
wants to merge 1 commit into from

Conversation

courtyenn
Copy link

@courtyenn courtyenn commented May 22, 2023

compiling a react application using a rollup based plugin (@vitejs/plugin-react in my case) will throw an error if package.json isn't exported.

The only package failing in my usecase is single-spa-react I did test this change by manually adding this line to the package in the node_modules folder and compiling again.

Fixes: #140
#168

@courtyenn
Copy link
Author

Oops. The exports is indeed needed for vite.

@courtyenn courtyenn closed this May 22, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

package.json exports causes problems with some environments
1 participant