Any way to hide my babylonjs code?

Is there anyway to hide my sourcecode based on babylon to protect it? Or any workaround solution about it?

Well, it’s a javascript concern more than a BJS one.
In brief, you can’t.

There are workarounds to make your code harder to understand or to be retro-engineered : minification and obfuscation
examples :
minification : uglify-js - npm
obfuscation :
Note that both can work together.

If you want to add an extra complexity layer, you could then code some parts in WASM so only the final bytecode would be downloaded.

1 Like