Skip to content

Commit

Permalink
fix(plugin-preview): do not ignore node_modules in watchOptions (#1654
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Timeless0911 authored Dec 11, 2024
1 parent 7d8aef9 commit c45b6b3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/old-rings-warn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rspress/core': patch
---

release
5 changes: 5 additions & 0 deletions packages/plugin-preview/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@ export function pluginPreview(options?: Options): RspressPlugin {

chain.resolve.extensions.prepend('.md').prepend('.mdx');
},
rspack: {
watchOptions: {
ignored: /\.git/,
},
},
},
plugins: [
{
Expand Down

0 comments on commit c45b6b3

Please sign in to comment.