Skip to content

Commit 3a423df

Browse files
committed
Client too
1 parent d172311 commit 3a423df

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

scripts/rollup/bundles.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -873,13 +873,18 @@ function getOriginalFilename(bundle, bundleType) {
873873

874874
function getFilename(bundle, bundleType) {
875875
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.
876878
if (originalFilename.indexOf('.server.') !== -1) {
877-
// Ensure .server.js is the final suffix.
878-
// This is important for the Server tooling convention.
879879
return originalFilename
880880
.replace('.server.', '.')
881881
.replace('.js', '.server.js');
882882
}
883+
if (originalFilename.indexOf('.client.') !== -1) {
884+
return originalFilename
885+
.replace('.client.', '.')
886+
.replace('.js', '.client.js');
887+
}
883888
return originalFilename;
884889
}
885890

0 commit comments

Comments
 (0)