Skip to content

Commit

Permalink
fix: devtools watch mode (#257)
Browse files Browse the repository at this point in the history
* fix(devtools): disable watch for standalone mode

* chore: changesets
  • Loading branch information
dalechyn committed May 2, 2024
1 parent db3a2e6 commit d2c237c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/wild-ladybugs-double.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"frog": patch
---

Disabled watch process when frog CLI is called outside of a project directory.
9 changes: 6 additions & 3 deletions src/cli/vite/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
}
},
Expand Down

0 comments on commit d2c237c

Please sign in to comment.