kkomelin/isomorphic-dompurify

Isomorphic Dompurify Remix support ?

JeromeTrottier opened this issue · 2 comments

Hi! I'm trying to use isomorphic-dompurify to sanitize html in a remix application (more specifically hydrogen), but I keep having this error
Untitled-1

I could use the dompurify and sanitize on the client side, but would prefer if it would on the server too.

Has anyone looked into this?

Thanks @JeromeTrottier for reporting it here.

My guess is that it's more or less related to these issues #203 #54

According to the error description, I can say that Remix is trying to use the browser entry point from package.json on server, which is incorrect, so it should be fixed on their side. Please report to them.