Open wtcross opened 3 years ago
This change preserves a reference to the global this as self so that module bundlers that change context do not prevent this package from working correctly. Otherwise, this will be undefined.
this
self
undefined
Good job, I suppose this PR should be merged!
Is there a chance this might be merged? This fix is perfect!
This change preserves a reference to the global
this
asself
so that module bundlers that change context do not prevent this package from working correctly. Otherwise,this
will beundefined
.