File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ const deprecationMessages = {
24
24
'The `server.moduleGraph` is replaced with `this.environment.moduleGraph`.' ,
25
25
removeServerHot : 'The `server.hot` is replaced with `this.environment.hot`.' ,
26
26
removeServerTransformRequest :
27
- 'The `server.transformRequest` is replaced with `this.environment.transformRequest `.' ,
27
+ 'The `server.transformRequest` related APIs are replaced with methods in `this.environment`.' ,
28
28
29
29
removeSsrLoadModule :
30
30
'The `server.ssrLoadModule` is replaced with Environment Runner.' ,
Original file line number Diff line number Diff line change @@ -601,6 +601,11 @@ export async function _createServer(
601
601
return environment . transformRequest ( url )
602
602
} ,
603
603
warmupRequest ( url , options ) {
604
+ warnFutureDeprecation (
605
+ config ,
606
+ 'removeServerTransformRequest' ,
607
+ 'server.warmupRequest() is deprecated. Use environment.warmupRequest() instead.' ,
608
+ )
604
609
const environment = server . environments [ options ?. ssr ? 'ssr' : 'client' ]
605
610
return environment . warmupRequest ( url )
606
611
} ,
You can’t perform that action at this time.
0 commit comments