Skip to content

Commit fac0ec6

Browse files
committed
simplify
1 parent 2c93c25 commit fac0ec6

File tree

1 file changed

+1
-6
lines changed
  • packages/svelte/src/compiler/phases

1 file changed

+1
-6
lines changed

packages/svelte/src/compiler/phases/scope.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -331,15 +331,10 @@ export function create_scopes(ast, root, allow_reactive_declarations, parent) {
331331
}
332332

333333
/**
334-
* Reference store in transion:, use:, animate: directives
335334
* @type {import('zimmerframe').Visitor<import('#compiler').Directive, State, import('#compiler').SvelteNode>}
336335
*/
337336
const SvelteDirective = (node, context) => {
338-
const name = node.name;
339-
340-
if (name[0] === '$') {
341-
context.state.scope.reference(b.id(name), context.path);
342-
}
337+
context.state.scope.reference(b.id(node.name), context.path);
343338
};
344339

345340
walk(ast, state, {

0 commit comments

Comments
 (0)