From 34fc3c7e9f11714dbb60dc50f125af8339cd4669 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20L=C3=BCtke?= Date: Sun, 2 Jul 2023 14:30:23 -0400 Subject: [PATCH] remove need for @microsoft/fetch-event-source dep (-7kb) --- examples/server/deps.sh | 2 +- examples/server/public/index.html | 111 ++++++++++++++++++++++-------- examples/server/public/index.js | 2 +- 3 files changed, 83 insertions(+), 32 deletions(-) diff --git a/examples/server/deps.sh b/examples/server/deps.sh index 5726795dc..cac3b7e64 100755 --- a/examples/server/deps.sh +++ b/examples/server/deps.sh @@ -5,7 +5,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" PUBLIC=$DIR/public -curl https://npm.reversehttp.com/@preact/signals-core,@preact/signals,htm/preact,preact,preact/hooks,@microsoft/fetch-event-source > $PUBLIC/index.js +curl https://npm.reversehttp.com/@preact/signals-core,@preact/signals,htm/preact,preact,preact/hooks > $PUBLIC/index.js echo >> $PUBLIC/index.js # add newline echo "// Generated file, run deps.sh to update. Do not edit directly diff --git a/examples/server/public/index.html b/examples/server/public/index.html index e3d3473c2..7ef1dda53 100644 --- a/examples/server/public/index.html +++ b/examples/server/public/index.html @@ -66,7 +66,7 @@