Skip to content

Commit 3e306eb

Browse files
committed
chore(vite): drop comments
1 parent 235ebb4 commit 3e306eb

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

‎packages/vite/hmr/helpers/ast-extract.ts‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@ export interface AstProcessResult {
88
diagnostics: string[];
99
}
1010

11-
/**
12-
* Removes type annotations from function parameters left in the AST (when an
13-
* earlier TypeScript strip failed). This used to be a regex over the printed
14-
* code, which also matched object properties: `{ a: 1, value: undefined }`
15-
* lost its `: undefined` and became `{ a: 1, value }`.
16-
*/
1711
function stripParamAnnotations(statements: Statement[]): boolean {
1812
let stripped = false;
1913
const strip = (param: any) => {

0 commit comments

Comments
 (0)