Open nrgwsth opened 6 years ago
Hi, I don't know how, but this breaks a lot of tests in FF. Can't merge it for now. There is also a plan to rewrite this lib using more modern JS.
is there a workaround? this simply crashes for me... global is undefined.
Uncaught TypeError: Cannot set property 'domtoimage' of undefined
I see this is my rollup output...
The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten
I am working on browser but I have a global variable called
module
. Instead of assigningdomtoimage
to window, it exports it becausetypeof module!=='undefined'
check passes. So add additional check for commonjs.