I have a question.
I'm new to webpack4 and I was told to apply it into project which is a .Net MVC & AngularJS 1.6 web app. Project has some imperfections which causes some problems with reusing some functionality inside angular files. So my first step is to bundle all code using webpack4, use babel etc. Yet the problem is in couple .js files like angular services, controllers, plain .js files previous devs used window object. After making couple entries (each entry for app part - service-bundle.js, controller-bundle.js etc) functions, variables which are assigned to window object does not work anymore. My question is - is it possible to some kind of "make" window object common for all entries so whenever new variable or function was assigned to window object in any file will be "visible" and treated as some kind of shared module?
Right now I have to keep files with window.function/variable separate from webpack entries and imported as standalone files.
Cheers