@@ -18,7 +18,7 @@ import {diffMarkdown, readMarkdown} from "./markdown.js";
1818import type { ParseResult , ReadMarkdownResult } from "./markdown.js" ;
1919import { renderPreview } from "./render.js" ;
2020import { type CellResolver , makeCLIResolver } from "./resolver.js" ;
21- import { rollupClient } from "./rollup.js" ;
21+ import { getClientPath , rollupClient } from "./rollup.js" ;
2222import { bold , faint , green , underline } from "./tty.js" ;
2323
2424const publicRoot = join ( dirname ( fileURLToPath ( import . meta. url ) ) , ".." , "public" ) ;
@@ -72,7 +72,7 @@ export class Server {
7272 if ( pathname === "/_observablehq/runtime.js" ) {
7373 send ( req , "/@observablehq/runtime/dist/runtime.js" , { root : "./node_modules" } ) . pipe ( res ) ;
7474 } else if ( pathname === "/_observablehq/client.js" ) {
75- end ( req , res , await rollupClient ( "./src/client/preview.js" ) , "text/javascript" ) ;
75+ end ( req , res , await rollupClient ( getClientPath ( "./src/client/preview.js" ) ) , "text/javascript" ) ;
7676 } else if ( pathname . startsWith ( "/_observablehq/" ) ) {
7777 send ( req , pathname . slice ( "/_observablehq" . length ) , { root : publicRoot } ) . pipe ( res ) ;
7878 } else if ( pathname . startsWith ( "/_import/" ) ) {
0 commit comments