From 075b7cdf2630781fccd170f00579fa1e50bea33c Mon Sep 17 00:00:00 2001 From: hotwater Date: Sun, 14 Apr 2024 15:27:58 +0300 Subject: [PATCH 1/2] fix(devtools): disable watch for standalone mode --- src/cli/vite/dev.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/cli/vite/dev.ts b/src/cli/vite/dev.ts index 42e9e100..f0314c34 100644 --- a/src/cli/vite/dev.ts +++ b/src/cli/vite/dev.ts @@ -164,9 +164,12 @@ export function devServer(options?: DevServerOptions): VitePlugin { config: () => { return { server: { - watch: { - ignored: options?.ignoreWatching ?? defaultOptions.ignoreWatching, - }, + watch: options?.injectClientScript + ? { + ignored: + options?.ignoreWatching ?? defaultOptions.ignoreWatching, + } + : null, }, } }, From 30904fc0f4f7c4b189db3c085b8c877cea888cf4 Mon Sep 17 00:00:00 2001 From: hotwater Date: Sun, 14 Apr 2024 15:28:37 +0300 Subject: [PATCH 2/2] chore: changesets --- .changeset/wild-ladybugs-double.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/wild-ladybugs-double.md diff --git a/.changeset/wild-ladybugs-double.md b/.changeset/wild-ladybugs-double.md new file mode 100644 index 00000000..26cd7532 --- /dev/null +++ b/.changeset/wild-ladybugs-double.md @@ -0,0 +1,5 @@ +--- +"frog": patch +--- + +Disabled watch process when frog CLI is called outside of a project directory.