|
|
@ -177,7 +177,7 @@ function get_delegated_event(node, context) {
|
|
|
|
// or any normal not reactive bindings that are mutated.
|
|
|
|
// or any normal not reactive bindings that are mutated.
|
|
|
|
binding.kind === 'normal' ||
|
|
|
|
binding.kind === 'normal' ||
|
|
|
|
// or any reactive imports (those are rewritten) (can only happen in legacy mode)
|
|
|
|
// or any reactive imports (those are rewritten) (can only happen in legacy mode)
|
|
|
|
(binding.kind === 'state' && binding.declaration_kind === 'import')) &&
|
|
|
|
binding.kind === 'legacy_reactive_import') &&
|
|
|
|
binding.mutated
|
|
|
|
binding.mutated
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
return non_hoistable;
|
|
|
|
return non_hoistable;
|
|
|
@ -532,7 +532,7 @@ const legacy_scope_tweaker = {
|
|
|
|
(state.reactive_statement || state.ast_type === 'template') &&
|
|
|
|
(state.reactive_statement || state.ast_type === 'template') &&
|
|
|
|
parent.type === 'MemberExpression'
|
|
|
|
parent.type === 'MemberExpression'
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
binding.kind = 'state';
|
|
|
|
binding.kind = 'legacy_reactive_import';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if (
|
|
|
|
} else if (
|
|
|
|
binding.mutated &&
|
|
|
|
binding.mutated &&
|
|
|
|