enso/app/ide-desktop/lib/content/watch.ts
2022-11-22 16:07:58 +01:00

11 lines
291 B
TypeScript

import bundler from './esbuild-config.js'
// @ts-ignore
import * as server from 'enso-gui-server'
await bundler.watch(() => liveServer?.reload(), [server.LIVE_RELOAD_LISTENER_PATH])
const liveServer = await server.start({
root: bundler.output_path,
assets: bundler.output_path,
})