No dead code elimination during snowpack build, with plugin-webpack #1026
-
I get the following warning in the browser console from React when building with I mentioned this in the Discord chat and @drwpow said this shouldn't be happening. I'm also seeing the following from babel during build:
Unsure if this is related or not. I've done some research into why babel echoes this and I believe it's related to the Site note: I'm using EDIT: This doesn't seem to be related to webpack at all, since we can reproduce it with a plain |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 14 replies
-
Fixed the "compat" issue quickly in #1031, but I'm still not sure where that "dead code" elimination issue is coming from. |
Beta Was this translation helpful? Give feedback.
-
A side note. I suddenly realized while testing with other browsers than Firefox that this error is only shown if you have React Developer Tools addon installed. Otherwise React is completely silent about it. |
Beta Was this translation helpful? Give feedback.
-
I think we can close this out. This seems to be happening because I'm using the Any recommendations of http modules to use? Or simply just use |
Beta Was this translation helpful? Give feedback.
-
Fixed by #1044 |
Beta Was this translation helpful? Give feedback.
Fixed by #1044