how to make script loading and es6 module loading working together?
问题 This loads jquery only once: <script type="module"> import "./js/jquery.js"; import "./js/jquery.js"; </script> The same is true for: <script type="module"> import "./js/jquery.js"; </script> <script type="module"> import "./js/jquery.js"; </script> But this loads jquery two times : <script src="./js/jquery.js"></script> <script type="module"> import "./js/jquery.js"; </script> Is it possible somehow to tell the browser's ES6 modules resolver that after first <script src="./js/jquery.js"><