Skip to content

Commit cf7c15c

Browse files
Update packages/svelte/src/compiler/phases/2-analyze/visitors/Identifier.js
Co-authored-by: Ben McCann <[email protected]>
1 parent 73d6384 commit cf7c15c

File tree

1 file changed

+1
-2
lines changed
  • packages/svelte/src/compiler/phases/2-analyze/visitors

1 file changed

+1
-2
lines changed

packages/svelte/src/compiler/phases/2-analyze/visitors/Identifier.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ export function Identifier(node, context) {
8787
// no binding means global, and we can't inline e.g. `<span>{location}</span>`
8888
// because it could change between component renders. if there _is_ a
8989
// binding and it is outside module scope, the expression cannot
90-
// be inlined (TODO allow inlining in more cases,
91-
// e.g. primitive consts)
90+
// be inlined (TODO allow inlining in more cases - e.g. primitive consts)
9291
let can_inline = !!binding && !binding.scope.parent && binding.kind === 'normal';
9392

9493
if (binding) {

0 commit comments

Comments
 (0)