File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ const prodConfig = {
34
34
"node-rsa" : "node-rsa"
35
35
} ,
36
36
resolve : {
37
+ mainFields : [ 'main' ] ,
37
38
extensions : [ '.ts' , '.js' ]
38
39
} ,
39
40
module : {
@@ -52,6 +53,7 @@ const prodConfig = {
52
53
new webpack . IgnorePlugin ( {
53
54
resourceRegExp : / c p u - f e a t u r e s / ,
54
55
} ) ,
56
+ new webpack . IgnorePlugin ( { contextRegExp : / n o d e - f e t c h / , resourceRegExp : / ^ e n c o d i n g $ / } ) ,
55
57
new CopyPlugin ( {
56
58
patterns : [
57
59
{ from : 'src/local-ssh/proxylauncher.bat' , to : 'local-ssh/proxylauncher.bat' } ,
@@ -81,6 +83,7 @@ const devConfig = {
81
83
"node-rsa" : "node-rsa"
82
84
} ,
83
85
resolve : {
86
+ mainFields : [ 'main' ] ,
84
87
extensions : [ '.ts' , '.js' ]
85
88
} ,
86
89
module : {
@@ -93,6 +96,7 @@ const devConfig = {
93
96
} ]
94
97
} ,
95
98
plugins : [
99
+ new webpack . IgnorePlugin ( { contextRegExp : / n o d e - f e t c h / , resourceRegExp : / ^ e n c o d i n g $ / } ) ,
96
100
new CopyPlugin ( {
97
101
patterns : [
98
102
{ from : 'src/local-ssh/proxylauncher.bat' , to : 'local-ssh/proxylauncher.bat' } ,
You can’t perform that action at this time.
0 commit comments