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 831e180 commit c54072bCopy full SHA for c54072b
packages/compiler-core/src/transforms/transformExpression.ts
@@ -227,7 +227,11 @@ export function processExpression(
227
const isScopeVarReference = context.identifiers[rawExp]
228
const isAllowedGlobal = isGloballyAllowed(rawExp)
229
const isLiteral = isLiteralWhitelisted(rawExp)
230
- if (!asParams && !isScopeVarReference && !isAllowedGlobal && !isLiteral) {
+
231
+ if (
232
+ (!asParams && !isScopeVarReference && !isAllowedGlobal && !isLiteral) ||
233
+ bindingMetadata[rawExp]
234
+ ) {
235
// const bindings exposed from setup can be skipped for patching but
236
// cannot be hoisted to module scope
237
if (isConst(bindingMetadata[node.content])) {
0 commit comments