preact-markup icon indicating copy to clipboard operation
preact-markup copied to clipboard

Handle case where document is undefined

Open hesselbom opened this issue 6 years ago • 1 comments

When using this library with preact-cli we get build error when prerendering because it expects document to not be undefined. The fallback here is to use dangerouslySetInnerHTML with the supplied markup.

hesselbom avatar Feb 26 '19 13:02 hesselbom

Just a heads up: https://github.com/developit/preact-markup/issues/6#issuecomment-809934523

danielweck avatar Mar 30 '21 05:03 danielweck