File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -1009,7 +1009,9 @@ const composeBundlelessExternalConfig = (
1009
1009
resolver = ( await getResolve ( ) ) as RspackResolver ;
1010
1010
}
1011
1011
1012
- async function redirectPath ( request : string ) : Promise < string | undefined > {
1012
+ async function redirectPath (
1013
+ request : string ,
1014
+ ) : Promise < string | undefined > {
1013
1015
try {
1014
1016
let resolvedRequest = request ;
1015
1017
// use resolver to resolve the request
@@ -1063,9 +1065,9 @@ const composeBundlelessExternalConfig = (
1063
1065
1064
1066
if ( jsRedirectPath ) {
1065
1067
const redirectedPath = await redirectPath ( resolvedRequest ) ;
1066
- if ( redirectedPath === undefined ) {
1068
+ if ( redirectedPath === undefined ) {
1067
1069
return callback ( undefined , request ) ;
1068
- }
1070
+ }
1069
1071
resolvedRequest = redirectedPath ;
1070
1072
}
1071
1073
Original file line number Diff line number Diff line change @@ -100,11 +100,11 @@ export async function cssExternalHandler(
100
100
const redirectedPath = await redirectPath ( request ) ;
101
101
if ( redirectedPath === undefined ) {
102
102
return callback ( undefined , request ) ;
103
- }
103
+ }
104
104
resolvedRequest = redirectedPath ;
105
105
}
106
106
107
- if ( ! isCssFile ( resolvedRequest ) ) {
107
+ if ( ! isCssFile ( resolvedRequest ) ) {
108
108
return false ;
109
109
}
110
110
@@ -123,7 +123,7 @@ export async function cssExternalHandler(
123
123
) ;
124
124
}
125
125
return callback ( undefined , resolvedRequest . replace ( / \. [ ^ . ] + $ / , '.css' ) ) ;
126
- }
126
+ }
127
127
128
128
return callback ( undefined , request ) ;
129
129
}
You can’t perform that action at this time.
0 commit comments