@volar/vue-code-gen
Advanced tools
Comparing version 0.37.9 to 0.38.0
@@ -257,3 +257,3 @@ "use strict"; | ||
// fix https://github.com/johnsoncodehk/volar/issues/1187 | ||
codeGen.addText(`const __VLS_withDefaultsArg = (function <T>(t: T) { return t })(`); | ||
codeGen.addText(`const __VLS_withDefaultsArg = (function <T>(t: T) { return t })(`); | ||
addExtraReferenceVirtualCode('scriptSetup', scriptSetupRanges.withDefaultsArg.start, scriptSetupRanges.withDefaultsArg.end); | ||
@@ -436,3 +436,4 @@ codeGen.addText(`);\n`); | ||
else { | ||
codeGen.addText(`return {} as typeof __VLS_Component & (new () => { ${getSlotsPropertyName(vueVersion)}: typeof import('./${path.basename(fileName)}.__VLS_template').default });\n`); | ||
codeGen.addText(`const __VLS_slots = (await import('./${path.basename(fileName)}.__VLS_template')).default;\n`); | ||
codeGen.addText(`return {} as typeof __VLS_Component & (new () => { ${getSlotsPropertyName(vueVersion)}: typeof __VLS_slots });\n`); | ||
} | ||
@@ -439,0 +440,0 @@ codeGen.addText(`})();`); |
@@ -22,3 +22,5 @@ "use strict"; | ||
const template_1 = require("./generators/template"); | ||
Object.defineProperty(exports, "isIntrinsicElement", { enumerable: true, get: function () { return template_1.isIntrinsicElement; } }); | ||
Object.defineProperty(exports, "isIntrinsicElement", { enumerable: true, get: function () { return | ||
// generate as generateTemplateScript, | ||
template_1.isIntrinsicElement; } }); | ||
Object.defineProperty(exports, "walkElementNodes", { enumerable: true, get: function () { return template_1.walkElementNodes; } }); | ||
@@ -25,0 +27,0 @@ const scriptRanges_1 = require("./parsers/scriptRanges"); |
{ | ||
"name": "@volar/vue-code-gen", | ||
"version": "0.37.9", | ||
"version": "0.38.0", | ||
"main": "out/index.js", | ||
@@ -19,4 +19,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"@volar/code-gen": "0.37.9", | ||
"@volar/source-map": "0.37.9", | ||
"@volar/code-gen": "0.38.0", | ||
"@volar/source-map": "0.38.0", | ||
"@vue/compiler-core": "^3.2.37", | ||
@@ -26,3 +26,3 @@ "@vue/compiler-dom": "^3.2.37", | ||
}, | ||
"gitHead": "56098c12f8af63604f4266bac7288a4d44f091ec" | ||
"gitHead": "7d9350e5a6a70657bf1b92e4b420de1357906c0a" | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
156018
3327
+ Added@volar/code-gen@0.38.0(transitive)
+ Added@volar/source-map@0.38.0(transitive)
- Removed@volar/code-gen@0.37.9(transitive)
- Removed@volar/source-map@0.37.9(transitive)
Updated@volar/code-gen@0.38.0
Updated@volar/source-map@0.38.0