Closed lastw closed 7 years ago
baron uses (function(window){})(this) pattern to resolve window, but node/webpack invoke modules with module.exports context — so, in this cases scopedWindow is not window (and window resize handler is not working).
(function(window){})(this)
window
module.exports
scopedWindow
Fixed in 2.2.9
baron uses
(function(window){})(this)
pattern to resolvewindow
, but node/webpack invoke modules withmodule.exports
context — so, in this casesscopedWindow
is notwindow
(and window resize handler is not working).