@vue/compiler-core 3.2.18 → 3.2.19
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.
|
@@ -3818,7 +3818,9 @@ const transformFor = createStructuralDirectiveTransform('for', (node, dir, conte
|
|
|
3818
3818
|
? createSimpleExpression(keyProp.value.content, true)
|
|
3819
3819
|
: keyProp.exp);
|
|
3820
3820
|
const keyProperty = keyProp ? createObjectProperty(`key`, keyExp) : null;
|
|
3821
|
-
if (context.prefixIdentifiers &&
|
|
3821
|
+
if (context.prefixIdentifiers &&
|
|
3822
|
+
keyProperty &&
|
|
3823
|
+
keyProp.type !== 6 /* ATTRIBUTE */) {
|
|
3822
3824
|
// #2085 process :key expression needs to be processed in order for it
|
|
3823
3825
|
// to behave consistently for <template v-for> and <div v-for>.
|
|
3824
3826
|
// In the case of `<template v-for>`, the node is discarded and never
|
|
@@ -3737,7 +3737,9 @@ const transformFor = createStructuralDirectiveTransform('for', (node, dir, conte
|
|
|
3737
3737
|
? createSimpleExpression(keyProp.value.content, true)
|
|
3738
3738
|
: keyProp.exp);
|
|
3739
3739
|
const keyProperty = keyProp ? createObjectProperty(`key`, keyExp) : null;
|
|
3740
|
-
if (context.prefixIdentifiers &&
|
|
3740
|
+
if (context.prefixIdentifiers &&
|
|
3741
|
+
keyProperty &&
|
|
3742
|
+
keyProp.type !== 6 /* ATTRIBUTE */) {
|
|
3741
3743
|
// #2085 process :key expression needs to be processed in order for it
|
|
3742
3744
|
// to behave consistently for <template v-for> and <div v-for>.
|
|
3743
3745
|
// In the case of `<template v-for>`, the node is discarded and never
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-core",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.19",
|
|
4
4
|
"description": "@vue/compiler-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/compiler-core.esm-bundler.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/vuejs/vue-next/tree/master/packages/compiler-core#readme",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@vue/shared": "3.2.
|
|
35
|
+
"@vue/shared": "3.2.19",
|
|
36
36
|
"@babel/parser": "^7.15.0",
|
|
37
37
|
"estree-walker": "^2.0.2",
|
|
38
38
|
"source-map": "^0.6.1"
|