@vue/language-core
Advanced tools
Comparing version 2.1.0 to 2.1.2
@@ -34,3 +34,3 @@ "use strict"; | ||
const ctx = (0, context_1.createScriptCodegenContext)(options); | ||
yield `/// <reference types="${options.vueCompilerOptions.lib}/__globalTypes_${options.vueCompilerOptions.target}_${options.vueCompilerOptions.strictTemplates}" />${common_1.newLine}`; | ||
yield `/// <reference types="${options.vueCompilerOptions.lib}/dist/__globalTypes_${options.vueCompilerOptions.target}_${options.vueCompilerOptions.strictTemplates}.d.ts" />${common_1.newLine}`; | ||
if (options.sfc.script?.src) { | ||
@@ -37,0 +37,0 @@ yield* (0, src_1.generateSrc)(options.sfc.script, options.sfc.script.src); |
@@ -159,3 +159,3 @@ "use strict"; | ||
const target = vueOptions.target ?? 3.3; | ||
const lib = vueOptions.lib || (target < 2.7 ? '@vue/runtime-dom' : 'vue'); | ||
const lib = vueOptions.lib ?? 'vue'; | ||
return { | ||
@@ -176,3 +176,3 @@ ...vueOptions, | ||
? [`(await import('${lib}')).defineComponent(`, `)`] | ||
: [`(await import('vue')).default.extend(`, `)`]), | ||
: [`(await import('${lib}')).default.extend(`, `)`]), | ||
macros: { | ||
@@ -179,0 +179,0 @@ defineProps: ['defineProps'], |
{ | ||
"name": "@vue/language-core", | ||
"version": "2.1.0", | ||
"version": "2.1.2", | ||
"license": "MIT", | ||
@@ -39,3 +39,3 @@ "files": [ | ||
}, | ||
"gitHead": "510063740b90b64caedaee1f0bde70974613a92c" | ||
"gitHead": "4e4b839ea20ae11a2aef7ee9206465cb60a4be53" | ||
} |
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
320690