I am developing an application that uses a specific site to facilitate payments, and the method of processing payments requires importing some javascript from this url https://bridge.paymill.com/ , which contains the script.
The fact is that I use js to load all the scripts, in my main.js configuration, I try to do this as follows:
requirejs.config({ ... 'paymill': 'https://bridge.paymill.com/', ... });
But this, of course, is trying to extract from https://bridge.paymill.com/.js , which is not a valid URL (it is without the last .js)
How can I notify requirejs to download this without adding ".js" at the end?
source share