feat: add support for preact devtools in dev mode (#639)
Co-authored-by: Luca Casonato <hello@lcas.dev>
This commit is contained in:
co-authored by
Luca Casonato
parent
d798db2a5f
commit
7e0278bbb3
@@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user