@vue/compiler-core 3.3.7 → 3.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3175,8 +3175,8 @@ function processExpression(node, context, asParams = false, asRawStatements = fa
|
|
|
3175
3175
|
const isScopeVarReference = context.identifiers[rawExp];
|
|
3176
3176
|
const isAllowedGlobal = shared.isGloballyAllowed(rawExp);
|
|
3177
3177
|
const isLiteral = isLiteralWhitelisted(rawExp);
|
|
3178
|
-
if (!asParams && !isScopeVarReference && !
|
|
3179
|
-
if (isConst(bindingMetadata[
|
|
3178
|
+
if (!asParams && !isScopeVarReference && !isLiteral && (!isAllowedGlobal || bindingMetadata[rawExp])) {
|
|
3179
|
+
if (isConst(bindingMetadata[rawExp])) {
|
|
3180
3180
|
node.constType = 1;
|
|
3181
3181
|
}
|
|
3182
3182
|
node.content = rewriteIdentifier(rawExp);
|
|
@@ -3104,8 +3104,8 @@ function processExpression(node, context, asParams = false, asRawStatements = fa
|
|
|
3104
3104
|
const isScopeVarReference = context.identifiers[rawExp];
|
|
3105
3105
|
const isAllowedGlobal = shared.isGloballyAllowed(rawExp);
|
|
3106
3106
|
const isLiteral = isLiteralWhitelisted(rawExp);
|
|
3107
|
-
if (!asParams && !isScopeVarReference && !
|
|
3108
|
-
if (isConst(bindingMetadata[
|
|
3107
|
+
if (!asParams && !isScopeVarReference && !isLiteral && (!isAllowedGlobal || bindingMetadata[rawExp])) {
|
|
3108
|
+
if (isConst(bindingMetadata[rawExp])) {
|
|
3109
3109
|
node.constType = 1;
|
|
3110
3110
|
}
|
|
3111
3111
|
node.content = rewriteIdentifier(rawExp);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-core",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.8",
|
|
4
4
|
"description": "@vue/compiler-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/compiler-core.esm-bundler.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-core#readme",
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@babel/parser": "^7.23.0",
|
|
36
|
-
"@vue/shared": "3.3.
|
|
36
|
+
"@vue/shared": "3.3.8",
|
|
37
37
|
"estree-walker": "^2.0.2",
|
|
38
38
|
"source-map-js": "^1.0.2"
|
|
39
39
|
},
|