File tree 1 file changed +6
-9
lines changed
session-signatures/generating-a-session/using-pkp/auth-with-google-oauth
1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -2,23 +2,20 @@ import { defineConfig } from 'vite';
2
2
import react from '@vitejs/plugin-react' ;
3
3
import { NodeGlobalsPolyfillPlugin } from '@esbuild-plugins/node-globals-polyfill' ;
4
4
import { NodeModulesPolyfillPlugin } from '@esbuild-plugins/node-modules-polyfill' ;
5
- import rollupNodePolyFill from 'rollup-plugin-polyfill-node' ;
6
5
import { nodePolyfills } from 'vite-plugin-node-polyfills' ;
7
6
8
7
export default defineConfig ( {
9
- plugins : [
10
- react ( ) ,
11
- nodePolyfills ( {
12
- include : [ 'buffer' , 'process' , 'util' ] ,
13
- } ) ,
14
- ] ,
8
+ plugins : [ react ( ) , nodePolyfills ( ) ] ,
15
9
define : {
16
10
'process.env' : { } ,
17
11
global : 'globalThis' ,
18
12
} ,
19
13
resolve : {
20
14
alias : {
21
- // Remove the buffer alias
15
+ buffer : 'buffer/' ,
16
+ crypto : 'crypto-browserify' ,
17
+ stream : 'stream-browserify' ,
18
+ vm : 'vm-browserify' ,
22
19
} ,
23
20
} ,
24
21
optimizeDeps : {
@@ -37,7 +34,7 @@ export default defineConfig({
37
34
} ,
38
35
build : {
39
36
rollupOptions : {
40
- plugins : [ rollupNodePolyFill ( ) ] ,
37
+ plugins : [ ] ,
41
38
} ,
42
39
} ,
43
40
} ) ;
You can’t perform that action at this time.
0 commit comments