From 18e346cd95029442257a14e3c644c695cdd453e2 Mon Sep 17 00:00:00 2001 From: IrohDW Date: Mon, 30 Dec 2024 20:21:38 -0700 Subject: [PATCH] Bugfix that prevents TextEditor.tsx from crashing on release builds --- src/components/common/TextEditor/TextEditor.tsx | 3 ++- tsconfig.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/common/TextEditor/TextEditor.tsx b/src/components/common/TextEditor/TextEditor.tsx index 9c676ff..6801916 100644 --- a/src/components/common/TextEditor/TextEditor.tsx +++ b/src/components/common/TextEditor/TextEditor.tsx @@ -12,7 +12,8 @@ Quill.register("modules/imageResize", ImageResize); const modules = { imageResize: { - parchment: Quill.import("parchment"), + // This line crashes on release build, but NOT Dev Mode for some reason. <_< + // parchment: Quill.import("parchment"), modules: ["Resize", "DisplaySize"], }, toolbar: [ diff --git a/tsconfig.json b/tsconfig.json index 0be1bb3..80edc1d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,6 +10,7 @@ "moduleResolution": "bundler", "allowImportingTsExtensions": true, "resolveJsonModule": true, + "isolatedModules": true, "noEmit": true, "jsx": "react-jsx",