Add SSR Support
Added jsdom as a dependency.
In parser-markup.js, document is accessed to create a frame to render HTML in. Since document doesn't exist in Node, this causes SSR builds to throw a reference error. With this change, we check for the existence of document and polyfill it using jsdom if it doesn't exist.
This is going to inline jsdom in all bundlers.
I think we'll need to provide a separate entry module for web/node in order to do the polyfilling.
There are several PR proposals (plus one that was closed without resolution), so I wrote a quick heads-up: https://github.com/developit/preact-markup/issues/6#issuecomment-809934523 (Preact WMR uses JSDOM in its Mardown render code)