fix: add vite alias to deduplicate react versions
Some checks failed
armco-org/components-viewer/pipeline/head There was a failure building this commit
Some checks failed
armco-org/components-viewer/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
import { defineConfig } from "vitest/config"
|
||||
import react from "@vitejs/plugin-react"
|
||||
import path from "path"
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
resolve: {
|
||||
alias: {
|
||||
react: path.resolve(__dirname, "./node_modules/react"),
|
||||
"react-dom": path.resolve(__dirname, "./node_modules/react-dom"),
|
||||
},
|
||||
},
|
||||
server: {
|
||||
open: true,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user