@vue/language-core 2.0.11 → 2.0.12
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.
|
@@ -385,7 +385,9 @@ function* generate(ts, compilerOptions, vueCompilerOptions, template, shouldGene
|
|
|
385
385
|
addedBlockCondition = true;
|
|
386
386
|
}
|
|
387
387
|
yield _ts(` {\n`);
|
|
388
|
-
|
|
388
|
+
if (isFragment(node)) {
|
|
389
|
+
yield* resetDirectiveComments('end of v-if start');
|
|
390
|
+
}
|
|
389
391
|
let prev;
|
|
390
392
|
for (const childNode of branch.children) {
|
|
391
393
|
yield* generateAstNode(childNode, parentEl, prev, componentCtxVar);
|
|
@@ -418,7 +420,9 @@ function* generate(ts, compilerOptions, vueCompilerOptions, template, shouldGene
|
|
|
418
420
|
yield* generateInterpolation(source.content, source.loc, source.loc.start.offset, presetInfos.all, '(', ')');
|
|
419
421
|
yield _ts('!)'); // #3102
|
|
420
422
|
yield _ts(') {\n');
|
|
421
|
-
|
|
423
|
+
if (isFragment(node)) {
|
|
424
|
+
yield* resetDirectiveComments('end of v-for start');
|
|
425
|
+
}
|
|
422
426
|
let prev;
|
|
423
427
|
for (const childNode of node.children) {
|
|
424
428
|
yield* generateAstNode(childNode, parentEl, prev, componentCtxVar);
|
|
@@ -1355,6 +1359,9 @@ function* generate(ts, compilerOptions, vueCompilerOptions, template, shouldGene
|
|
|
1355
1359
|
}
|
|
1356
1360
|
}
|
|
1357
1361
|
exports.generate = generate;
|
|
1362
|
+
function isFragment(node) {
|
|
1363
|
+
return node.codegenNode && 'consequent' in node.codegenNode && 'tag' in node.codegenNode.consequent && node.codegenNode.consequent.tag === CompilerDOM.FRAGMENT;
|
|
1364
|
+
}
|
|
1358
1365
|
function createTsAst(ts, astHolder, text) {
|
|
1359
1366
|
if (astHolder.__volar_ast_text !== text) {
|
|
1360
1367
|
astHolder.__volar_ast_text = text;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/language-core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.12",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"**/*.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"directory": "packages/language-core"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@volar/language-core": "
|
|
15
|
+
"@volar/language-core": "2.2.0-alpha.7",
|
|
16
16
|
"@vue/compiler-dom": "^3.4.0",
|
|
17
17
|
"@vue/shared": "^3.4.0",
|
|
18
18
|
"computeds": "^0.0.1",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"optional": true
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "c1c4e1a2a6c32da59351641bd41bf7f5db0cac69"
|
|
38
38
|
}
|