From f49561d5c33493a65e2700f2e4768f6f87bb68df Mon Sep 17 00:00:00 2001 From: Fig Date: Tue, 7 Nov 2023 03:12:58 +0000 Subject: [PATCH 1/2] Relax watchDirectories glob The previous glob was a little too restrictive and would not watch files target at request variants e.g. `app/views/things/show.html+phone.erb` --- esbuild.config.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esbuild.config.mjs b/esbuild.config.mjs index 9242d0c..38d6ce8 100644 --- a/esbuild.config.mjs +++ b/esbuild.config.mjs @@ -22,7 +22,7 @@ const entryPoints = [ ] const watchDirectories = [ "./app/javascript/**/*.js", - "./app/views/**/*.html.erb", + "./app/views/**/*.html*.erb", "./app/assets/builds/**/*.css", // Wait for cssbundling changes ] const config = { From 9d8708ee4860cdaa4f87b804ed9b26c48f97b786 Mon Sep 17 00:00:00 2001 From: Chris Oliver Date: Tue, 7 Nov 2023 07:48:50 -0600 Subject: [PATCH 2/2] Update esbuild.config.mjs --- esbuild.config.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esbuild.config.mjs b/esbuild.config.mjs index 38d6ce8..2fe760b 100644 --- a/esbuild.config.mjs +++ b/esbuild.config.mjs @@ -22,7 +22,7 @@ const entryPoints = [ ] const watchDirectories = [ "./app/javascript/**/*.js", - "./app/views/**/*.html*.erb", + "./app/views/**/*.erb", "./app/assets/builds/**/*.css", // Wait for cssbundling changes ] const config = {