@@ -72,7 +72,7 @@ export class Server {
72
72
if ( pathname === "/_observablehq/runtime.js" ) {
73
73
send ( req , "/@observablehq/runtime/dist/runtime.js" , { root : "./node_modules" } ) . pipe ( res ) ;
74
74
} else if ( pathname === "/_observablehq/client.js" ) {
75
- end ( req , res , await rollupClient ( "./src/client/preview.js" ) , "text /javascript" ) ;
75
+ end ( req , res , await rollupClient ( "./src/client/preview.js" ) , "application /javascript" ) ;
76
76
} else if ( pathname . startsWith ( "/_observablehq/" ) ) {
77
77
send ( req , pathname . slice ( "/_observablehq" . length ) , { root : publicRoot } ) . pipe ( res ) ;
78
78
} else if ( pathname . startsWith ( "/_import/" ) ) {
@@ -84,7 +84,7 @@ export class Server {
84
84
if ( ! isEnoent ( error ) ) throw error ;
85
85
throw new HttpError ( "Not found" , 404 ) ;
86
86
}
87
- end ( req , res , rewriteModule ( js , file , createImportResolver ( this . root ) ) , "text /javascript" ) ;
87
+ end ( req , res , rewriteModule ( js , file , createImportResolver ( this . root ) ) , "application /javascript" ) ;
88
88
} else if ( pathname . startsWith ( "/_file/" ) ) {
89
89
const path = pathname . slice ( "/_file" . length ) ;
90
90
const filepath = join ( this . root , path ) ;
0 commit comments