So I have some JS libs I want to use at global scope (window
).
They are built with webpack I assume, where their dist code has something like module.exports=xxx
If I put them as <script></script>
tag in html, I can access them there.
But If I require
them in webpack, then bundle them with webpack, I cannot see them in global scope.
Is there anything I can do to make them visible without modifying the library itself?