@vue/language-core 1.8.7 → 1.8.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.
package/out/plugins/vue-tsx.d.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { Sfc, VueLanguagePlugin } from '../types';
|
|
2
2
|
import * as muggle from 'muggle-string';
|
|
3
|
-
import * as ts from 'typescript/lib/tsserverlibrary';
|
|
4
3
|
export declare const tsCodegen: WeakMap<Sfc, {
|
|
5
4
|
scriptRanges: import("@vue/reactivity").ComputedRef<{
|
|
6
5
|
exportDefault: (import("../types").TextRange & {
|
|
7
6
|
expression: import("../types").TextRange;
|
|
8
7
|
args: import("../types").TextRange;
|
|
9
|
-
argsNode:
|
|
8
|
+
argsNode: import("typescript/lib/tsserverlibrary").ObjectLiteralExpression | undefined;
|
|
10
9
|
componentsOption: import("../types").TextRange | undefined;
|
|
11
|
-
componentsOptionNode:
|
|
10
|
+
componentsOptionNode: import("typescript/lib/tsserverlibrary").ObjectLiteralExpression | undefined;
|
|
12
11
|
nameOption: import("../types").TextRange | undefined;
|
|
13
12
|
}) | undefined;
|
|
14
13
|
bindings: import("../types").TextRange[];
|
package/out/plugins/vue-tsx.js
CHANGED
|
@@ -8,7 +8,6 @@ const scriptRanges_1 = require("../parsers/scriptRanges");
|
|
|
8
8
|
const scriptSetupRanges_1 = require("../parsers/scriptSetupRanges");
|
|
9
9
|
const language_core_1 = require("@volar/language-core");
|
|
10
10
|
const muggle = require("muggle-string");
|
|
11
|
-
const ts = require("typescript/lib/tsserverlibrary");
|
|
12
11
|
const templateFormatReg = /^\.template_format\.ts$/;
|
|
13
12
|
const templateStyleCssReg = /^\.template_style\.css$/;
|
|
14
13
|
exports.tsCodegen = new WeakMap();
|
|
@@ -99,7 +98,8 @@ const plugin = (ctx) => {
|
|
|
99
98
|
}
|
|
100
99
|
};
|
|
101
100
|
exports.default = plugin;
|
|
102
|
-
function createTsx(fileName, _sfc, { vueCompilerOptions, compilerOptions, codegenStack }) {
|
|
101
|
+
function createTsx(fileName, _sfc, { vueCompilerOptions, compilerOptions, codegenStack, modules }) {
|
|
102
|
+
const ts = modules.typescript;
|
|
103
103
|
const lang = (0, reactivity_1.computed)(() => {
|
|
104
104
|
return !_sfc.script && !_sfc.scriptSetup ? 'ts'
|
|
105
105
|
: _sfc.scriptSetup && _sfc.scriptSetup.lang !== 'js' ? _sfc.scriptSetup.lang
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/language-core",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.8",
|
|
4
4
|
"main": "out/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"optional": true
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "62a08c35722319bcca90ea3ebd3236fbd986a6a6"
|
|
38
38
|
}
|