Skip to content

Commit 18f84a8

Browse files
committed
fix(repl): sort outputs
1 parent 1480897 commit 18f84a8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

packages/docs/src/repl/bundler/bundler-worker.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,9 @@ async function performBundle(message: BundleMessage): Promise<ReplResult> {
196196
message: [`Client build: ${(performance.now() - start).toFixed(2)}ms`],
197197
});
198198

199-
result.clientBundles = clientBundle.output.map(getOutput);
199+
result.clientBundles = clientBundle.output
200+
.map(getOutput)
201+
.sort((a, b) => a.path.localeCompare(b.path));
200202

201203
start = performance.now();
202204
// Perform SSR bundle
@@ -233,7 +235,7 @@ async function performBundle(message: BundleMessage): Promise<ReplResult> {
233235
message: [`SSR build: ${(performance.now() - start).toFixed(2)}ms`],
234236
});
235237

236-
result.ssrModules = ssrBundle.output.map(getOutput);
238+
result.ssrModules = ssrBundle.output.map(getOutput).sort((a, b) => a.path.localeCompare(b.path));
237239

238240
// SSR execution moved to separate SSR worker
239241
result.html = '';

packages/docs/src/repl/ui/repl-output-panel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export const ReplOutputPanel = component$(({ input, store }: ReplOutputPanelProp
120120
) : null}
121121

122122
{store.selectedOutputPanel === 'clientBundles' ? (
123-
<ReplOutputModules headerText="/build/" outputs={store.clientBundles} />
123+
<ReplOutputModules headerText="/dist/" outputs={store.clientBundles} />
124124
) : null}
125125

126126
{store.selectedOutputPanel === 'serverModules' ? (

0 commit comments

Comments
 (0)