import { evaluate , invalidate } from './evaluate' ; import { startReportingRuntimeErrorsIfNotStarted , handleBuildError , } from './lib/errors' ; class RPCWebviewHandle { constructor ( ) { } updatePreview ( code , entryFilePath , entryFileDependencies ) { startReportingRuntimeErrorsIfNotStarted ( ) ; evaluate ( code , entryFilePath , entryFileDependencies ) ; } showPreviewError ( error ) { startReportingRuntimeErrorsIfNotStarted ( ) ; handleBuildError ( error ) ; } async invalidate ( fsPath ) { await invalidate ( fsPath ) ; } } export default RPCWebviewHandle ;