Comparing version 1.0.5 to 1.0.6
@@ -39,9 +39,9 @@ #!/usr/bin/env node | ||
if (compiled.staticRenderFns.length) { | ||
jsTemplate += `,s:[${compiled.staticRenderFns.map(this.toFunction).join(',')}]}` | ||
} else jsTemplate += '}' | ||
jsTemplate += `,s:[${compiled.staticRenderFns.map(this.toFunction).join(',')}]};` | ||
} else jsTemplate += '};' | ||
} else { | ||
jsTemplate = `${this.options.namespace}.${templateName}={r:${this.toFunction(compiled.render)}` | ||
if (compiled.staticRenderFns.length) { | ||
jsTemplate += `,s:[${compiled.staticRenderFns.map(this.toFunction).join(',')}]}` | ||
} else jsTemplate += '}' | ||
jsTemplate += `,s:[${compiled.staticRenderFns.map(this.toFunction).join(',')}]};` | ||
} else jsTemplate += '};' | ||
} | ||
@@ -48,0 +48,0 @@ return {data: jsTemplate, name: templateName} |
{ | ||
"name": "fuet", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Simple and fast template compiler for Vue 2.", | ||
@@ -5,0 +5,0 @@ "bin": { |
12970