From 9cd01160f2300159619b23e8abc37e5848a160a2 Mon Sep 17 00:00:00 2001 From: Konstantin Komelin Date: Tue, 12 Dec 2023 08:10:52 +0700 Subject: [PATCH] Marked the browser.js module as client code in attempt to fix the #228 bug in Next.js. --- browser.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/browser.js b/browser.js index f7b23ad..1af2903 100644 --- a/browser.js +++ b/browser.js @@ -1 +1,2 @@ -module.exports = window.DOMPurify || (window.DOMPurify = require('dompurify').default || require('dompurify')); \ No newline at end of file +'use client'; +module.exports = window.DOMPurify || (window.DOMPurify = require('dompurify').default || require('dompurify'));