Skip to content

Commit 1f16670

Browse files
committed
chore(template-compiler): remove unused param in importDeclaration
And add missing attributes required by new version of @types/estree.
1 parent 3693c04 commit 1f16670

File tree

1 file changed

+2
-3
lines changed
  • packages/@lwc/template-compiler/src/shared

1 file changed

+2
-3
lines changed

packages/@lwc/template-compiler/src/shared/estree.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -384,14 +384,13 @@ export function variableDeclaration(
384384

385385
export function importDeclaration(
386386
specifiers: t.ImportDeclaration['specifiers'],
387-
source: t.ImportDeclaration['source'],
388-
config?: Partial<t.ImportDeclaration>
387+
source: t.ImportDeclaration['source']
389388
): t.ImportDeclaration {
390389
return {
391390
type: 'ImportDeclaration',
392391
specifiers,
393392
source,
394-
...config,
393+
attributes: [],
395394
};
396395
}
397396

0 commit comments

Comments
 (0)