web: ESBuild performance + Live reload (#13026)

* web: Silence ESBuild warning.

* web: Flesh out live reload. Tidy ESBuild.

---------

Signed-off-by: Teffen Ellis <592134+GirlBossRush@users.noreply.github.com>
This commit is contained in:
Teffen Ellis
2025-02-27 18:35:56 +01:00
committed by GitHub
parent 2c802cad63
commit 5eb6d62c9c
8 changed files with 533 additions and 103 deletions

View File

@ -13,3 +13,9 @@ import "@goauthentik/flow/stages/identification/IdentificationStage";
import "@goauthentik/flow/stages/password/PasswordStage";
// end of stage import
if (process.env.NODE_ENV === "development" && process.env.WATCHER_URL) {
const { ESBuildObserver } = await import("@goauthentik/common/client");
new ESBuildObserver(process.env.WATCHER_URL);
}