vue-inbrowser-compiler-demi
Advanced tools
Comparing version 4.55.0 to 4.56.5
{ | ||
"name": "vue-inbrowser-compiler-demi", | ||
"version": "4.55.0", | ||
"version": "4.56.5", | ||
"description": "use this with vue-inbrowser-compiler to compile for vue2 or vue3", | ||
@@ -5,0 +5,0 @@ "module": "index.esm.js", |
@@ -9,6 +9,10 @@ const Vue = require('vue') | ||
module.exports.Vue2 = Vue | ||
module.exports.compileTemplate = ({ source: template }) => ({ | ||
code: VueTemplateCompiler.compile(template).render | ||
}) | ||
module.exports.compileTemplate = ({ source: template }) => { | ||
const compiled = VueTemplateCompiler.compile(template) | ||
return { | ||
code: compiled.render, | ||
staticRenderFns: compiled.staticRenderFns | ||
} | ||
} | ||
module.exports.parseComponent = VueTemplateCompiler.parseComponent | ||
module.exports.compileScript = () => ({ type: 'script' }) |
@@ -44,3 +44,3 @@ import { parseComponent as parse } from 'vue-template-compiler' | ||
} | ||
}) => { code: string } | ||
}) => { code: string, staticRenderFns: string[] } | ||
@@ -47,0 +47,0 @@ export declare function parseComponent(...args:Parameters<typeof parse>): ReturnType<typeof parse> & {scriptSetup?:SFCScriptBlock} |
@@ -9,6 +9,10 @@ import Vue from 'vue' | ||
export { Vue as Vue2 } | ||
export const compileTemplate = ({ source: template }) => ({ | ||
code: compile(template).render | ||
}) | ||
export const compileTemplate = ({ source: template }) => { | ||
const compiled = compile(template) | ||
return { | ||
code: compiled.render, | ||
staticRenderFns: compiled.staticRenderFns | ||
} | ||
} | ||
export { parseComponent } | ||
export const compileScript = () => ({ type: 'script' }) |
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
8661
183