Skip to content

Commit 528ff39

Browse files
committed
fix
1 parent 7f47f86 commit 528ff39

File tree

1 file changed

+2
-2
lines changed
  • packages/svelte/src/compiler/phases/3-transform/client/visitors

1 file changed

+2
-2
lines changed

packages/svelte/src/compiler/phases/3-transform/client/visitors/OnDirective.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
import * as b from '#compiler/builders';
44
import { build_event, build_event_handler } from './shared/events.js';
55

6-
const modifiers = [
6+
const modifiers = /** @type {const} */ ([
77
'stopPropagation',
88
'stopImmediatePropagation',
99
'preventDefault',
1010
'self',
1111
'trusted',
1212
'once'
13-
];
13+
]);
1414

1515
/**
1616
* @param {AST.OnDirective} node

0 commit comments

Comments
 (0)