"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Can't compile for WebGL when Vuforia exists in project

I saw another thread addressing this same issue, but it seems like it got locked after a misunderstanding, so here I go again.

We need Vuforia to not get in the way of compiling for WebGL. We understand that Vuforia does not and will not support WebGL. We just need you to wrap some parts of your code in #if UNITY_ANDROID | UNITY_IOS so that it will successfully compile.