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

Add default export to package.json #210

Merged
merged 1 commit into from
Feb 7, 2025
Merged

Add default export to package.json #210

merged 1 commit into from
Feb 7, 2025

Conversation

wesbos
Copy link
Contributor

@wesbos wesbos commented Feb 7, 2025

Seems some bundlers (webpack, turbopack) can't import this when the rehype package is passed as a string.

Tracking the issue here, but adding the default key also fixes it.

Same issue this package, the merge fixed it. stefanprobst/rehype-extract-toc#10

tracking the issue: vercel/next.js#73757

Would appreciate if you could merge + cut a release.

@jrson83 jrson83 merged commit 76f4862 into jrson83:main Feb 7, 2025
1 check passed
@jrson83
Copy link
Owner

jrson83 commented Feb 7, 2025

@wesbos awesome thank you! I will update deps and release a new version.

@wesbos
Copy link
Contributor Author

wesbos commented Feb 12, 2025

thanks a ton!

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.

2 participants