File tree 3 files changed +801
-4571
lines changed
3 files changed +801
-4571
lines changed Original file line number Diff line number Diff line change 16
16
"@emotion/styled" : " ^11.11.0" ,
17
17
"@hookform/resolvers" : " ^3.3.4" ,
18
18
"@tanstack/react-query" : " 5.68.0" ,
19
+ "buffer" : " ^6.0.3" ,
19
20
"framer-motion" : " ^11.0.8" ,
20
21
"react" : " ^18.3.1" ,
21
22
"react-dom" : " ^18.3.1" ,
22
23
"react-hook-form" : " ^7.51.0" ,
23
24
"zod" : " ^3.22.4"
24
25
},
25
26
"devDependencies" : {
27
+ "@esbuild-plugins/node-globals-polyfill" : " ^0.2.3" ,
26
28
"@eslint/js" : " ^9.9.1" ,
27
29
"@types/react" : " ^18.3.5" ,
28
30
"@types/react-dom" : " ^18.3.0" ,
35
37
"typescript-eslint" : " ^8.3.0" ,
36
38
"vite" : " ^5.4.2"
37
39
}
38
- }
40
+ }
Original file line number Diff line number Diff line change 1
1
import { defineConfig } from 'vite'
2
2
import react from '@vitejs/plugin-react'
3
+ import { NodeGlobalsPolyfillPlugin } from '@esbuild-plugins/node-globals-polyfill' ;
3
4
4
5
// https://vitejs.dev/config/
5
6
export default defineConfig ( {
6
7
plugins : [ react ( ) ] ,
8
+ optimizeDeps : {
9
+ esbuildOptions : {
10
+ define : {
11
+ global : 'globalThis'
12
+ } ,
13
+ plugins : [
14
+ NodeGlobalsPolyfillPlugin ( {
15
+ buffer : true ,
16
+ } )
17
+ ]
18
+ }
19
+ } ,
20
+ resolve : {
21
+ alias : {
22
+ buffer : 'buffer'
23
+ }
24
+ }
7
25
} )
You can’t perform that action at this time.
0 commit comments