fix: remove hard-coded React alias that points to the wrong location and break the dev render (#9842)
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import tailwindcss from '@tailwindcss/vite';
|
||||
import { resolve } from 'path';
|
||||
|
||||
// https://vitejs.dev/config
|
||||
export default defineConfig({
|
||||
@@ -10,14 +9,6 @@ export default defineConfig({
|
||||
|
||||
plugins: [tailwindcss()],
|
||||
|
||||
resolve: {
|
||||
dedupe: ['react', 'react-dom'],
|
||||
alias: {
|
||||
react: resolve(__dirname, 'node_modules/react'),
|
||||
'react-dom': resolve(__dirname, 'node_modules/react-dom'),
|
||||
},
|
||||
},
|
||||
|
||||
build: {
|
||||
target: 'esnext'
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user