trying to fix domain vite build problem

This commit is contained in:
BrunoMatosTech 2025-04-30 14:51:54 +00:00
parent a278d13d4d
commit 265c2ba096
2 changed files with 2 additions and 0 deletions

View file

@ -17,6 +17,7 @@ const getConfig = (outdir) => ({
"@excalidraw/math": path.resolve(__dirname, "../packages/math/src"), "@excalidraw/math": path.resolve(__dirname, "../packages/math/src"),
"@excalidraw/utils": path.resolve(__dirname, "../packages/utils/src"), "@excalidraw/utils": path.resolve(__dirname, "../packages/utils/src"),
}, },
external: ["react", "react-dom"],
}); });
function buildDev(config) { function buildDev(config) {

View file

@ -37,6 +37,7 @@ const getConfig = (outdir) => ({
loader: { loader: {
".woff2": "file", ".woff2": "file",
}, },
external: ["react", "react-dom"], // Explicitly externalize react and react-dom
}); });
function buildDev(config) { function buildDev(config) {