-
-
Notifications
You must be signed in to change notification settings - Fork 530
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
fix: add export field into package.json #982
Conversation
or
|
Co-authored-by: Jaco <jacogr@gmail.com>
or
|
I'll try it on my bug repro, and check if webpack (the oldest bundler in the place) behave correctly. Maybe later today |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#972 regression
See #972 (comment) for investigation results. They seem to indicate that pointing to non-minified version is not a reliable solution to the issue. |
or
@GerkinDev this beta release is pointing to minified files |
Honestly I don't know how to reliably fix the issue. Given that some builds seems to work, while some other don't, only with swc, I have the feeling that it's somewhat related to a bug in the mangling map of swc. The shortest reliable solution I've found is I've tracked down the faulty reassignation from within the bundled That kind of issue is a hell. |
@GerkinDev can you confirm if the bug is happening on 5.8.3 - Rollup - ~ 14kb (final files sizes) PR: #959 |
I'll explore that. Also, I'll do tests with other versions of next.js, maybe it's a regression in a dependency or it might have been patched in the meantime. |
Confirming that it's working for me in 5.8.3 |
@jeyang can you test this beta release and let me know if it's working, please?
or
This beta version was built with rollup instead of esbuild |
@jeyang can you test if the beta release with rollup works for you, please? (another PR) edit: or can you provide a reproducible example, so I can test, please? |
same issue for me. It comes up when using storybook (version Using normal webpack build:
Using storybook
|
Please check my comment at: #984 (comment) |
export
field into package.jsonTo try this PR just install this beta release:
or
close #976
close #981