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
You can use define window.myvar = {}. When you want to use it, you can use like window.myvar = 1
window.myvar = {}
window.myvar = 1