Skip to content

deno --watch flag doesn't work while webview is running #161

@ozaner

Description

@ozaner

Consider this minimal example:

import { Webview } from "https://deno.land/x/[email protected]/mod.ts";

const html = `
  <html><body>
    <h1>Hello from deno v${Deno.version.deno}</h1>
  </body></html>`;

const webview = new Webview();
webview.navigate(`data:text/html,${encodeURIComponent(html)}`);
webview.run();

Run the program with deno run -A --unstable --watch index.ts. You'll find that deno no longer restarts the program when a file is changed. It seems that after webview.run() is called, watcher events are blocked.

I'm using the latest version of deno as of writing (v1.36.4).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions