Open buu700 opened 3 years ago
The diff is smaller with ?w=1, but basically just made it conditional whether to use JSDOM or browser DOM depending on the existence of document. eval('require')(...) is used in the Node.js case to avoid getting picked up by web bundlers.
?w=1
document
eval('require')(...)
The diff is smaller with
?w=1
, but basically just made it conditional whether to use JSDOM or browser DOM depending on the existence ofdocument
.eval('require')(...)
is used in the Node.js case to avoid getting picked up by web bundlers.