-
-
Notifications
You must be signed in to change notification settings - Fork 602
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]: legalComments issue - not executable code if we retain comments #6366
Comments
This seems like a bug of Rspack when using |
A minimal reproduction repo: https://github.com/chenjiahan/rsbuild-repro-invalid-legal-comments Steps:
Open dist/static/js/index.js, there are three possible random results:
|
There are three part of this issue:
|
2 tasks
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
Details
In production mode we have not exucutable code for libraries with comments.
lib-lodash.js example without legalComments property
... /*! ./_stackHas */.nodeType&&t,i=u&&u.exports===o?e.Buffer:void ....
Error in browser:
It can be fixed by setting legalComments ='none'
In this case we have executable code with webpack wrapper
rsbuild.config.js
Reproduce link
Don't have
Reproduce Steps
"lodash": "^4.17.21"
The text was updated successfully, but these errors were encountered: