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) {