File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
packages/compiler-core/src/transforms Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -100,13 +100,6 @@ export function processExpression(
100
100
}
101
101
102
102
const { inline, bindingMetadata } = context
103
-
104
- // const bindings exposed from setup - we know they never change
105
- if ( bindingMetadata [ node . content ] === BindingTypes . CONST ) {
106
- node . isRuntimeConstant = true
107
- return node
108
- }
109
-
110
103
const prefix = ( raw : string ) => {
111
104
const type = hasOwn ( bindingMetadata , raw ) && bindingMetadata [ raw ]
112
105
if ( inline ) {
@@ -138,6 +131,10 @@ export function processExpression(
138
131
// bail on parens to prevent any possible function invocations.
139
132
const bailConstant = rawExp . indexOf ( `(` ) > - 1
140
133
if ( isSimpleIdentifier ( rawExp ) ) {
134
+ // const bindings exposed from setup - we know they never change
135
+ if ( bindingMetadata [ node . content ] === BindingTypes . CONST ) {
136
+ node . isRuntimeConstant = true
137
+ }
141
138
if (
142
139
! asParams &&
143
140
! context . identifiers [ rawExp ] &&
You can’t perform that action at this time.
0 commit comments