You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, this demo requires LuciadRIA as a local dependency, and unfortunately I'm not allowed to share this code as it is proprietary. However, it should give an idea of what I'm trying to achieve.
Considering the behavior of the "unused" flag is unreliable, it makes sense to set it's default value to "false", like the "comparisons" flag.
The text was updated successfully, but these errors were encountered:
I can't really tell which of the underlying components is responsible. Is it webpack-contrib/uglifyjs-webpack-plugin? Or maybe mishoo/UglifyJS2? I'm not sure how to tell.
I can, however, tell that setting the unused flag in the webpack.config.prod.js config file of facebook/create-react-app fixes the issue.
And considering setting the unused flag to true can actually break an app and this behavior is unpredictable, it seems reasonable to me to set the default to false for a boilerplate project like facebook/create-react-app, as is already the case for the comparisons flag (see #2376).
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 7 days if no further activity occurs.
Is this a bug report?
Yes
Steps to Reproduce
Expected Behavior
Both the dev code & the built code should behave the same.
Actual Behavior
Some of the built code behaved incorrectly.
More specifically, some WebGL code generated with Emscripten did not behave as expected in the built code.
In my app, I expected to see this :
![Image of Yaktocat](https://camo.githubusercontent.com/cbc5f0819988d178941f09fa3ffa1d2baeb4283f311557aa6c3c51ac7a2a10bc/68747470733a2f2f692e696d6775722e636f6d2f646655796765302e706e67)
Instead, I saw this :
![Image of Yaktocat](https://camo.githubusercontent.com/aa8399ebf957c2d500d8829a5069b9f5f69f246cf633fbc5aa8111c84adacf90/68747470733a2f2f692e696d6775722e636f6d2f526b55314439772e706e67)
Setting the "unused" flag to "false" fixes this problem.
Demo
A demo app can be found at https://github.com/jslegers/luciadria-react-app.
Unfortunately, this demo requires LuciadRIA as a local dependency, and unfortunately I'm not allowed to share this code as it is proprietary. However, it should give an idea of what I'm trying to achieve.
Considering the behavior of the "unused" flag is unreliable, it makes sense to set it's default value to "false", like the "comparisons" flag.
The text was updated successfully, but these errors were encountered: