File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -873,13 +873,18 @@ function getOriginalFilename(bundle, bundleType) {
873
873
874
874
function getFilename ( bundle , bundleType ) {
875
875
const originalFilename = getOriginalFilename ( bundle , bundleType ) ;
876
+ // Ensure .server.js or .client.js is the final suffix.
877
+ // This is important for the Server tooling convention.
876
878
if ( originalFilename . indexOf ( '.server.' ) !== - 1 ) {
877
- // Ensure .server.js is the final suffix.
878
- // This is important for the Server tooling convention.
879
879
return originalFilename
880
880
. replace ( '.server.' , '.' )
881
881
. replace ( '.js' , '.server.js' ) ;
882
882
}
883
+ if ( originalFilename . indexOf ( '.client.' ) !== - 1 ) {
884
+ return originalFilename
885
+ . replace ( '.client.' , '.' )
886
+ . replace ( '.js' , '.client.js' ) ;
887
+ }
883
888
return originalFilename ;
884
889
}
885
890
You can’t perform that action at this time.
0 commit comments