From 8532a8164c6a1a06d065424479d6b33bd5ae6506 Mon Sep 17 00:00:00 2001 From: neverland Date: Sat, 17 Jan 2026 21:10:18 +0800 Subject: [PATCH] fix: correct watchpack require path --- packages/rspack/src/node/NodeWatchFileSystem.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/rspack/src/node/NodeWatchFileSystem.ts b/packages/rspack/src/node/NodeWatchFileSystem.ts index e81c780287c5..03103de7dbb5 100644 --- a/packages/rspack/src/node/NodeWatchFileSystem.ts +++ b/packages/rspack/src/node/NodeWatchFileSystem.ts @@ -71,7 +71,7 @@ export default class NodeWatchFileSystem implements WatchFileSystem { } const oldWatcher = this.watcher; - const Watchpack = require('watchpack'); + const Watchpack = require('../compiled/watchpack/index.js'); this.watcher = new Watchpack(options); if (callbackUndelayed) {