feat: add support for preact devtools in dev mode (#639)

Co-authored-by: Luca Casonato <hello@lcas.dev>
This commit is contained in:
Marvin Hagemeister
2022-08-23 13:29:12 +00:00
committed by GitHub
co-authored by Luca Casonato
parent d798db2a5f
commit 7e0278bbb3
3 changed files with 26 additions and 4 deletions
+6 -1
View File
@@ -85,8 +85,13 @@ export class ServerContext {
this.#notFound = notFound;
this.#error = error;
this.#plugins = plugins;
this.#bundler = new Bundler(this.#islands, this.#plugins, importMapURL);
this.#dev = typeof Deno.env.get("DENO_DEPLOYMENT_ID") !== "string"; // Env var is only set in prod (on Deploy).
this.#bundler = new Bundler(
this.#islands,
this.#plugins,
importMapURL,
this.#dev,
);
}
/**