From 0da0dedf55654d8aced56f3547f34a3015f24a6e Mon Sep 17 00:00:00 2001 From: Timeless0911 <1604889533@qq.com> Date: Wed, 11 Dec 2024 11:40:47 +0800 Subject: [PATCH] fix(plugin-preview): do not ignore node_modules in `watchOptions` --- .changeset/old-rings-warn.md | 5 +++++ packages/plugin-preview/src/index.ts | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 .changeset/old-rings-warn.md diff --git a/.changeset/old-rings-warn.md b/.changeset/old-rings-warn.md new file mode 100644 index 000000000..e45bc657a --- /dev/null +++ b/.changeset/old-rings-warn.md @@ -0,0 +1,5 @@ +--- +'@rspress/core': patch +--- + +release diff --git a/packages/plugin-preview/src/index.ts b/packages/plugin-preview/src/index.ts index 234d35867..2c8923893 100644 --- a/packages/plugin-preview/src/index.ts +++ b/packages/plugin-preview/src/index.ts @@ -173,6 +173,11 @@ export function pluginPreview(options?: Options): RspressPlugin { chain.resolve.extensions.prepend('.md').prepend('.mdx'); }, + rspack: { + watchOptions: { + ignored: /\.git/, + }, + }, }, plugins: [ {