Skip to content

Commit bab6e9d

Browse files
committed
add comment
1 parent 0a82796 commit bab6e9d

File tree

1 file changed

+1
-0
lines changed
  • packages/svelte/src/compiler/phases/3-transform/client

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ export function push_template_expression(state, expression_to_add) {
346346
export function can_inline_variable(binding) {
347347
return (
348348
!!binding &&
349+
// in a `<script module>` block
349350
!binding.scope.parent &&
350351
// to prevent the need for escaping
351352
binding.initial?.type === 'Literal'

0 commit comments

Comments
 (0)