test(admin-vite-plugin): React Invalid hook call on Windows (#9647)
This commit is contained in:
committed by
GitHub
parent
a0b747e117
commit
82e32f9da4
@@ -28,7 +28,14 @@ export async function getViteConfig(
|
||||
outDir: path.resolve(process.cwd(), options.outDir),
|
||||
},
|
||||
optimizeDeps: {
|
||||
include: ["react-dom/client", "@medusajs/ui", "@medusajs/dashboard"],
|
||||
include: [
|
||||
"react",
|
||||
"react/jsx-runtime",
|
||||
"react-dom/client",
|
||||
"react-router-dom",
|
||||
"@medusajs/ui",
|
||||
"@medusajs/dashboard",
|
||||
],
|
||||
exclude: [...VIRTUAL_MODULES],
|
||||
},
|
||||
define: {
|
||||
|
||||
Reference in New Issue
Block a user