I'm developing a plugin for a tool. The plugin is just a zip file, and the tool only looks for and loads main.html file. Thefore, any JS must be inlined in the HTML file.
I'm trying to develop with separate Typescript files and then have webpack bundle all the .ts files into a bundle.js and inline it in the HTML.
I managed to this but there's one problem. How to call the logic in the bundle from the HTML?
Webpack creates __webpack_modules__ IIFE variables for the code in the bundle.
<head>
<script>bundled JS</script>
</head>
<body>
</body>
<script>
// How to call here an init() function in the bundle?
</script>
I tried to setup iife: false with no luck:

 
     
    