Does anyone know of any way to compile my file such that it only takes the bare minimum code needed from these other 10 files to compile correctly (so that the resulting generated js file becomes significantly smaller?)
Thank you everyone for your help
How do you do this? (just curious)
According to the gopherjs README -m removes dead code.
I was able to find an outstanding open issue in gopherjs here: https://github.com/gopherjs/gopherjs/issues/186 that addresses my question, but there there doesn’t seem to be a resolution yet. I’ll keep looking but it seems like I might need to roll my own modified compiler or something.
Perhaps try joy. It advertises DCE as a feature.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.