@@ -14,7 +14,6 @@ import { exitWithCleanup } from "./cleanup.ts";
1414import { onActiveProfileChanged } from "../project/project-profile.ts" ;
1515import { onDotenvChanged } from "../quarto-core/dotenv.ts" ;
1616import { normalizePath , safeExistsSync } from "./path.ts" ;
17- import { buildQuartoPreviewJs } from "./previewjs.ts" ;
1817import { isWindows } from "../deno_ral/platform.ts" ;
1918
2019export const kLocalDevelopment = "99.9.9" ;
@@ -78,12 +77,6 @@ export const quartoConfig = {
7877 } ,
7978} ;
8079
81- export function previewEnsureResources ( cleanup ?: VoidFunction ) {
82- if ( quartoConfig . isDebug ( ) ) {
83- buildPreviewJs ( quartoSrcDir ( ) , cleanup ) ;
84- }
85- }
86-
8780export function previewMonitorResources ( cleanup ?: VoidFunction ) {
8881 // active profile changed
8982 onActiveProfileChanged ( ( ) => {
@@ -129,10 +122,3 @@ function terminatePreview(reason: string, cleanup?: VoidFunction) {
129122function quartoSrcDir ( ) {
130123 return normalizePath ( join ( quartoConfig . binPath ( ) , "../../../src" ) ) ;
131124}
132-
133- function buildPreviewJs ( srcDir : string , cleanup ?: VoidFunction ) {
134- const output = buildQuartoPreviewJs ( srcDir ) ;
135- if ( ! output . success ) {
136- terminatePreview ( "Error building quarto-preview.js" , cleanup ) ;
137- }
138- }
0 commit comments