1
1
const path = require ( 'path' )
2
2
3
+ const resolve = {
4
+ fallback : {
5
+ buffer : require . resolve ( 'buffer/' ) ,
6
+ http : require . resolve ( 'stream-http' ) ,
7
+ https : require . resolve ( 'https-browserify' ) ,
8
+ url : require . resolve ( 'url/' ) ,
9
+ } ,
10
+ }
11
+
3
12
const serverDevConfig = {
4
13
entry : './src/build.js' ,
5
14
target : 'node' ,
6
15
mode : 'development' ,
7
16
output : {
8
17
path : path . resolve ( __dirname , 'dist' ) ,
9
18
filename : 'intentoConnector.node.js' ,
19
+ hashFunction : 'xxhash64' ,
10
20
} ,
21
+ resolve,
11
22
}
12
23
13
24
const serverConfig = {
@@ -17,7 +28,9 @@ const serverConfig = {
17
28
output : {
18
29
path : path . resolve ( __dirname , 'dist' ) ,
19
30
filename : 'intentoConnector.node.min.js' ,
31
+ hashFunction : 'xxhash64' ,
20
32
} ,
33
+ resolve,
21
34
}
22
35
23
36
const clientDevConfig = {
@@ -27,7 +40,9 @@ const clientDevConfig = {
27
40
output : {
28
41
path : path . resolve ( __dirname , 'dist' ) ,
29
42
filename : 'intentoConnector.js' ,
43
+ hashFunction : 'xxhash64' ,
30
44
} ,
45
+ resolve,
31
46
}
32
47
33
48
const clientConfig = {
@@ -37,7 +52,9 @@ const clientConfig = {
37
52
output : {
38
53
path : path . resolve ( __dirname , 'dist' ) ,
39
54
filename : 'intentoConnector.min.js' ,
55
+ hashFunction : 'xxhash64' ,
40
56
} ,
57
+ resolve,
41
58
}
42
59
43
60
module . exports = [ serverDevConfig , serverConfig , clientDevConfig , clientConfig ]
0 commit comments