From de97de193920eabd5bb6d2997cf51f5df45ddf1c Mon Sep 17 00:00:00 2001 From: BrunoMatosTech <96066978+BrunoMatosTech@users.noreply.github.com> Date: Wed, 30 Apr 2025 15:24:18 +0000 Subject: [PATCH] refactor stuff --- excalidraw-app/components/AppMainMenu.tsx | 2 +- excalidraw-app/vite.config.mts | 1 - scripts/buildBase.js | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/excalidraw-app/components/AppMainMenu.tsx b/excalidraw-app/components/AppMainMenu.tsx index a9219ee81..c50b734c4 100644 --- a/excalidraw-app/components/AppMainMenu.tsx +++ b/excalidraw-app/components/AppMainMenu.tsx @@ -5,7 +5,7 @@ import { isDevEnv } from "@excalidraw/common"; import { LanguageList } from "../app-language/LanguageList"; import { isExcalidrawPlusSignedUser } from "../app_constants"; import { saveDebugState } from "./DebugCanvas"; -import type { Theme } from "../../packages/element/src/types"; +import type { Theme } from "@excalidraw/element/types"; export const AppMainMenu: React.FC<{ onCollabDialogOpen: () => any; diff --git a/excalidraw-app/vite.config.mts b/excalidraw-app/vite.config.mts index 637dfca4c..29e5c0430 100644 --- a/excalidraw-app/vite.config.mts +++ b/excalidraw-app/vite.config.mts @@ -80,7 +80,6 @@ export default defineConfig(({ mode }) => { build: { outDir: "build", rollupOptions: { - external: ["react-dom"], // Mark react-dom as an external dependency output: { assetFileNames(chunkInfo) { if (chunkInfo?.name?.endsWith(".woff2")) { diff --git a/scripts/buildBase.js b/scripts/buildBase.js index c9159d0e9..336b49823 100644 --- a/scripts/buildBase.js +++ b/scripts/buildBase.js @@ -17,7 +17,6 @@ const getConfig = (outdir) => ({ "@excalidraw/math": path.resolve(__dirname, "../packages/math/src"), "@excalidraw/utils": path.resolve(__dirname, "../packages/utils/src"), }, - external: ["react", "react-dom"], }); function buildDev(config) {