File tree 2 files changed +6
-2
lines changed
Filter options
2 files changed +6
-2
lines changed
Original file line number Diff line number Diff line change @@ -2467,7 +2467,9 @@ const wrapRequire = new Proxy(require, {
2467
2467
return target . apply ( thisArg , [ moduleID ] ) ;
2468
2468
}
2469
2469
catch ( err ) {
2470
- return target . resolve ( moduleID , { paths : [ ...module . paths , process . cwd ( ) ] } ) ;
2470
+ return target . resolve ( moduleID , {
2471
+ paths : module . paths . concat ( process . cwd ( ) )
2472
+ } ) ;
2471
2473
}
2472
2474
} ,
2473
2475
get : ( target , prop , receiver ) => {
Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ export const wrapRequire = new Proxy(__non_webpack_require__, {
10
10
try {
11
11
return target . apply ( thisArg , [ moduleID ] )
12
12
} catch ( err ) {
13
- return target . resolve ( moduleID , { paths : [ ...module . paths , process . cwd ( ) ] } )
13
+ return target . resolve ( moduleID , {
14
+ paths : module . paths . concat ( process . cwd ( ) )
15
+ } )
14
16
}
15
17
} ,
16
18
You can’t perform that action at this time.
0 commit comments