Skip to content

Commit 436cb0f

Browse files
committed
fix
1 parent 949a89e commit 436cb0f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/rspack/src/Watching.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ export class Watching {
333333
private _done(error: Error | null, compilation?: Compilation) {
334334
this.running = false;
335335

336-
let stats: undefined | Stats;
336+
let stats: undefined | Stats = undefined;
337337

338338
const handleError = (err: Error, cbs?: Callback<Error, void>[]) => {
339339
this.compiler.hooks.failed.call(err);

packages/rspack/src/util/cleverMerge.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@ const _cleverMerge = <First extends Obj, Second extends Obj>(
275275
// If the first argument has a dynamic part we modify the dynamic part to merge the second argument
276276
let secondObj = second;
277277
if (firstDynamicInfo !== undefined) {
278-
let { byProperty, fn } = firstDynamicInfo;
278+
let { fn } = firstDynamicInfo;
279+
const { byProperty } = firstDynamicInfo;
279280
const fnInfo = fn[DYNAMIC_INFO];
280281
if (fnInfo) {
281282
secondObj = internalCaching

rslint.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ export default defineConfig([
3232
'@typescript-eslint/triple-slash-reference': 'off',
3333
'no-constant-binary-expression': 'off',
3434
'no-empty': 'off',
35-
'prefer-const': 'off',
3635
},
3736
},
3837
{

0 commit comments

Comments
 (0)