If you’re testing your app in your desktop browser, you can simply exclude the file.
For Chrome:
<script type="text/javascript">
if (!navigator.userAgent.toLowerCase().match('chrome')) {
document.write("<script src="https://stackoverflow.com/questions/16920596/phonegap.js"><\/script>");
}
</script>
(This way you don’t have to remember to uncomment the script link for your build process.)