Skip to content

Commit ea89aa8

Browse files
committed
Revert "chore: improve the handling of type errors."
This reverts commit 7abc277.
1 parent 7abc277 commit ea89aa8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/auto-hmr/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@ export function createAutoHmrPlugin({ modulePath }: AutoHmrPluginOptions): Unplu
5353
let routerName: string | undefined
5454
let routerDeclaration: VariableDeclarator | undefined
5555

56-
for (const node of ast.body as any[]) {
57-
// …rest of loop body…
58-
}
56+
// @ts-expect-error
5957
for (const node of ast.body) {
6058
if (
6159
node.type === 'ExportNamedDeclaration' ||

0 commit comments

Comments
 (0)