Is it possible to define a global variable with webpack to result something like this:
var myvar = {};
All of the examples I saw were using
I solved this issue by setting the global variables as a static properties on the classes to which they are most relevant. In ES5 it looks like this:
var Foo = function(){...}; Foo.globalVar = {};