Skip to content

Commit

Permalink
fix(dev-server): add /\.mf/ to ignoreWatching (#111)
Browse files Browse the repository at this point in the history
* fix(dev-server): add `/\.mf/` to `ignoreWatching`

* add changeset
  • Loading branch information
tseijp committed Mar 18, 2024
1 parent 16aac23 commit bfcb35f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/soft-cherries-allow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hono/vite-dev-server": minor
---

Added `.mf` to `ignoreWatching` in `vite-plugin` to fix unnecessary server reloads on file changes. This update prevents the Vite server from restarting when `.mf` files are modified, improving development experience.
2 changes: 1 addition & 1 deletion packages/dev-server/src/dev-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const defaultOptions: Required<Omit<DevServerOptions, 'env' | 'cf' | 'ada
/^\/static\/.+/,
/^\/node_modules\/.*/,
],
ignoreWatching: [/\.wrangler/],
ignoreWatching: [/\.wrangler/, /\.mf/],
plugins: [],
}

Expand Down

0 comments on commit bfcb35f

Please sign in to comment.