-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Uglification of React 16.7.0-alpha (with hooks) seems to be broken #3291
Comments
Does it work with |
Hi @kzc, yep, it works with |
Unable to independently confirm that. Cannot reproduce the issue in |
@z4o4z |
@kzc The uglification was done through Using |
Have this issue @starbucks as well, will be moving to |
@alexlamsl Why did you close it? |
I can confirm that |
Bug report or feature request?
Bug report
Uglify version (
uglifyjs -V
)uglify-js@3.4.9 (via uglify-js-webpack-plugin@2.0.1)
The following is React-DOM's 16.7.0-alpha code for pushing updates to their Component Update Queue (in React Fibre):
JavaScript input
The
uglifyjs
CLI command executed orminify()
options used.All the default options
JavaScript output or error produced.
The error is trying to set
lastEffect
on thejo
object, which has not yet been defined. Perhaps a result of UglifyJS trying to reduce the return statement?Related Issues:
facebook/react#14014
webpack-contrib/uglifyjs-webpack-plugin#374
The text was updated successfully, but these errors were encountered: