Now I know you already started developing app using VS Code and now questions is that how to protect app for viewing the code while debugging or downloading.
However extension development package provide setting for IP protection for viewing or downloading the code of extensions but you can also control by just adding one line code in app.json file.
app.json file containing setting called showMyCode which controls whether it is possible to debug the code ,By default it is set to false which means debugging in extension code not allowed.
If you want to allow to show extension code then add the line as below in app.json file as by default this setting is not added in app.json file when it is created.
By adding this setting, you enable debugging into an extension to view the source code when that extension is set as a dependency.
Stay tuned for more.