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 = (
10091009 resolver = ( await getResolve ( ) ) as RspackResolver ;
10101010 }
10111011
1012- async function redirectPath ( request : string ) : Promise < string | undefined > {
1012+ async function redirectPath (
1013+ request : string ,
1014+ ) : Promise < string | undefined > {
10131015 try {
10141016 let resolvedRequest = request ;
10151017 // use resolver to resolve the request
@@ -1063,9 +1065,9 @@ const composeBundlelessExternalConfig = (
10631065
10641066 if ( jsRedirectPath ) {
10651067 const redirectedPath = await redirectPath ( resolvedRequest ) ;
1066- if ( redirectedPath === undefined ) {
1068+ if ( redirectedPath === undefined ) {
10671069 return callback ( undefined , request ) ;
1068- }
1070+ }
10691071 resolvedRequest = redirectedPath ;
10701072 }
10711073
Original file line number Diff line number Diff line change @@ -100,11 +100,11 @@ export async function cssExternalHandler(
100100 const redirectedPath = await redirectPath ( request ) ;
101101 if ( redirectedPath === undefined ) {
102102 return callback ( undefined , request ) ;
103- }
103+ }
104104 resolvedRequest = redirectedPath ;
105105 }
106106
107- if ( ! isCssFile ( resolvedRequest ) ) {
107+ if ( ! isCssFile ( resolvedRequest ) ) {
108108 return false ;
109109 }
110110
@@ -123,7 +123,7 @@ export async function cssExternalHandler(
123123 ) ;
124124 }
125125 return callback ( undefined , resolvedRequest . replace ( / \. [ ^ . ] + $ / , '.css' ) ) ;
126- }
126+ }
127127
128128 return callback ( undefined , request ) ;
129129}
You can’t perform that action at this time.
0 commit comments