Is this issue a result of a bug within Shopify, or should we consider implementing unique script naming as a measure to prevent naming collisions with both our own apps and those developed by other Shopify developers?
I believe there are some measures that Shopify has to prevent script collisions, but even still it's best practice to prefix the script name with the app name or a unique identifier related to your app. For example, instead of `widget.js`, you could use `yourAppName_widget.js`. This not only prevents conflicts with other app's JS files, but also can help other developers or merchants when troubleshooting issues if it's clear which JS file is associated with your app.
Hope this helps!