mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
trying to fix domain vite build problem
This commit is contained in:
parent
a278d13d4d
commit
265c2ba096
2 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue