-
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
"Assignment to itself has no effect" #666
Comments
Similarly, I have the following warning:
While it could be a valid warning, in my case it's not, this code will never be triggered (it's caused by Edit: The suggestion from #665 is likely good enough for this particular problem - the |
I'd like to know what this error message originally looked like before you replaced part of it with
This warning exists to tell you about code that isn't being bundled. The alternative of ignoring this code would mean that the generated bundle is likely to fail at run-time since some of the code is missing. It felt like a good idea to have this warning because other bundlers may actually bundle code like this successfully due to dynamic file system emulation, so people may actually expect it to work. And an extra warning is mostly harmless but a silently failing build can be very annoying and hard to debug. |
Yep. The full path was something like:
Fair enough 👍 |
Ah that makes sense. Looks like these warnings are only ignored for files inside |
My understanding is that third-party packages shouldn't emit warning due to weird syntax (#395 (comment)), but it doesn't seem to be the case every time. I have the following construct coming from
got
(caused by this line):Which generates the following warning:
The text was updated successfully, but these errors were encountered: