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 = {
3434 "node-rsa" : "node-rsa"
3535 } ,
3636 resolve : {
37+ mainFields : [ 'main' ] ,
3738 extensions : [ '.ts' , '.js' ]
3839 } ,
3940 module : {
@@ -52,6 +53,7 @@ const prodConfig = {
5253 new webpack . IgnorePlugin ( {
5354 resourceRegExp : / c p u - f e a t u r e s / ,
5455 } ) ,
56+ new webpack . IgnorePlugin ( { contextRegExp : / n o d e - f e t c h / , resourceRegExp : / ^ e n c o d i n g $ / } ) ,
5557 new CopyPlugin ( {
5658 patterns : [
5759 { from : 'src/local-ssh/proxylauncher.bat' , to : 'local-ssh/proxylauncher.bat' } ,
@@ -81,6 +83,7 @@ const devConfig = {
8183 "node-rsa" : "node-rsa"
8284 } ,
8385 resolve : {
86+ mainFields : [ 'main' ] ,
8487 extensions : [ '.ts' , '.js' ]
8588 } ,
8689 module : {
@@ -93,6 +96,7 @@ const devConfig = {
9396 } ]
9497 } ,
9598 plugins : [
99+ new webpack . IgnorePlugin ( { contextRegExp : / n o d e - f e t c h / , resourceRegExp : / ^ e n c o d i n g $ / } ) ,
96100 new CopyPlugin ( {
97101 patterns : [
98102 { from : 'src/local-ssh/proxylauncher.bat' , to : 'local-ssh/proxylauncher.bat' } ,
You can’t perform that action at this time.
0 commit comments