We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73d6384 commit cf7c15cCopy full SHA for cf7c15c
packages/svelte/src/compiler/phases/2-analyze/visitors/Identifier.js
@@ -87,8 +87,7 @@ export function Identifier(node, context) {
87
// no binding means global, and we can't inline e.g. `<span>{location}</span>`
88
// because it could change between component renders. if there _is_ a
89
// binding and it is outside module scope, the expression cannot
90
- // be inlined (TODO allow inlining in more cases,
91
- // e.g. primitive consts)
+ // be inlined (TODO allow inlining in more cases - e.g. primitive consts)
92
let can_inline = !!binding && !binding.scope.parent && binding.kind === 'normal';
93
94
if (binding) {
0 commit comments