Just be different! We use jQuery, and I tried to add it through config.js and use import, etc., which worked fine. But we also use a couple of js libraries that we load using the script tag on the html main page, and this requires jquery. I tried to load them using import, too, but they were not intended for this, and it just got too complicated, so in the end we just made life very simple:
tag
script for jquery on html main page
script tag from third-party js libraries on the html main page
work is done!
It also has the potential benefit of being able to load both jquery and libraries from CDN if you want.
You may lose the benefits of loading modules through import, but we use both jquery and other libraries throughout the application, so we donβt lose, and I donβt forget to import them when creating a new module :-)
source share