From 0311e5f836846a534bf5d8a23a94437133cda1c0 Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Sat, 13 Apr 2024 22:42:24 +0200 Subject: [PATCH] add socket-events import to entry point socket-events aren't ever imported, if we don't do that however webpack never actually sees any code that leads to it and skips bundling it. So for now, do an import that has the side effect of registering all the events until we have a proper registration in place that's a bit more sane to call --- client/js/vue.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/client/js/vue.ts b/client/js/vue.ts index 7f94cba0..332d41e1 100644 --- a/client/js/vue.ts +++ b/client/js/vue.ts @@ -7,6 +7,7 @@ import App from "../components/App.vue"; import storage from "./localStorage"; import {router} from "./router"; import socket from "./socket"; +import "./socket-events"; // this sets up all socket event listeners, do not remove import eventbus from "./eventbus"; import "./webpush";