[Solved] how to get `jQuery` as a function (not as a Module symbol) after ES6 style `import * as jQuery from “./js/jquery.js”;`
This: <script type=”module”> import “./js/jquery.js”; window.console.log(window.$); </script> creates jQuery on window as “side effect”. JQuery code ( function( global, factory ) { “use strict”; if (typeof module === “object” && typeof module.exports === “object”) { // … } else { // we are there when loading as ES6 native module factory( global ); } } … Read more