@vue/language-core
Advanced tools
Comparing version 2.0.23-alpha.1 to 2.0.24
@@ -1,2 +0,1 @@ | ||
import type { VueCompilerOptions } from './lib/types'; | ||
export * from './lib/codegen/template'; | ||
@@ -15,8 +14,1 @@ export * from './lib/languageModule'; | ||
export type * as CompilerDOM from '@vue/compiler-dom'; | ||
declare module '@volar/language-core' { | ||
interface Language { | ||
vue?: { | ||
compilerOptions: VueCompilerOptions; | ||
}; | ||
} | ||
} |
@@ -9,3 +9,3 @@ "use strict"; | ||
return sfc.customBlocks.map((customBlock, i) => ({ | ||
id: 'customBlock_' + i, | ||
id: 'custom_block_' + i, | ||
lang: customBlock.lang, | ||
@@ -15,4 +15,4 @@ })); | ||
resolveEmbeddedCode(_fileName, sfc, embeddedFile) { | ||
if (embeddedFile.id.startsWith('customBlock_')) { | ||
const index = parseInt(embeddedFile.id.slice('customBlock_'.length)); | ||
if (embeddedFile.id.startsWith('custom_block_')) { | ||
const index = parseInt(embeddedFile.id.slice('custom_block_'.length)); | ||
const customBlock = sfc.customBlocks[index]; | ||
@@ -19,0 +19,0 @@ embeddedFile.content.push([ |
@@ -33,3 +33,2 @@ "use strict"; | ||
return ast; | ||
; | ||
} | ||
@@ -59,3 +58,2 @@ } | ||
return ast; | ||
; | ||
} | ||
@@ -106,3 +104,3 @@ } | ||
const customBlocks = (0, computeds_1.computedArray)((0, computeds_1.computed)(() => parsed()?.descriptor.customBlocks ?? []), (block, i) => { | ||
const base = computedSfcBlock('customBlock_' + i, 'txt', block); | ||
const base = computedSfcBlock('custom_block_' + i, 'txt', block); | ||
const type = (0, computeds_1.computed)(() => block().type); | ||
@@ -109,0 +107,0 @@ return (0, computeds_1.computed)(() => mergeObject(base, { |
{ | ||
"name": "@vue/language-core", | ||
"version": "2.0.23-alpha.1", | ||
"version": "2.0.24", | ||
"license": "MIT", | ||
@@ -15,3 +15,3 @@ "files": [ | ||
"dependencies": { | ||
"@volar/language-core": "~2.4.0-alpha.0", | ||
"@volar/language-core": "~2.4.0-alpha.2", | ||
"@vue/compiler-dom": "^3.4.0", | ||
@@ -29,3 +29,3 @@ "@vue/shared": "^3.4.0", | ||
"@types/path-browserify": "^1.0.1", | ||
"@volar/typescript": "~2.4.0-alpha.0", | ||
"@volar/typescript": "~2.4.0-alpha.2", | ||
"@vue/compiler-sfc": "^3.4.0" | ||
@@ -41,3 +41,3 @@ }, | ||
}, | ||
"gitHead": "70cb34e9d58afd603d50cb5b870116b189f4662b" | ||
"gitHead": "bca79db09e413ef29c17b910271c123a7a68806f" | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
292906
6549