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) {