Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions packages/rspack/src/multiCompiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,7 @@ export class MultiCompiler {
validateDependencies(callback: Callback<Error, MultiStats>): boolean {
const edges = new Set<{ source: Compiler; target: Compiler }>();
const missing: string[] = [];
// @ts-expect-error
const targetFound = compiler => {
const targetFound = (compiler: Compiler) => {
for (const edge of edges) {
if (edge.target === compiler) {
return true;
Expand Down
6 changes: 2 additions & 4 deletions packages/rspack/src/watching.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ class Watching {
dirs: Iterable<string>,
missing: Iterable<string>
) {
// @ts-expect-error
this.pausedWatcher = null;
this.pausedWatcher = undefined;
this.watcher = this.compiler.watchFileSystem.watch(
files,
dirs,
Expand Down Expand Up @@ -212,8 +211,7 @@ class Watching {
this.pausedWatcher = this.watcher;
this.lastWatcherStartTime = Date.now();
this.watcher.pause();
// @ts-expect-error
this.watcher = null;
this.watcher = undefined;
} else if (!this.lastWatcherStartTime) {
this.lastWatcherStartTime = Date.now();
}
Expand Down