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

[Bug]: Lazy bundle Standalone Producer will lost snapshot defs on minify: true #351

Closed
upupming opened this issue Mar 26, 2025 · 3 comments
Assignees

Comments

@upupming
Copy link
Collaborator

upupming commented Mar 26, 2025

Follow Docs: https://lynxjs.org/react/code-splitting.html#lazy-loading-standalone-project

If we build a standalone Producer project and use in another customer, will got following error:

Image

The root issue is that when using minify: true, main-thread.js is not minified correctly on the lazy bundle.

@upupming upupming self-assigned this Mar 26, 2025
@upupming
Copy link
Collaborator Author

It seems globDynamicComponentEntry is not minified correctly:

Image

After minify, it is _=_||"__Card__", which will always be __Card__

@upupming
Copy link
Collaborator Author

Problem can be simply fixed by rename function param to globDynamicComponentEntry1:

Image

@upupming
Copy link
Collaborator Author

Should have been fixed by #177

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

No branches or pull requests

1 participant