Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit 3f488e3

Browse files
committed
Fix missing characters
1 parent 9f5dd9f commit 3f488e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vueTransform.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ function injectRender(script, render) {
5050
const matches = /(export default[^{]*\{)/g.exec(script);
5151
if (matches) {
5252
function toFunction (code) {
53-
return `function(){${code}})`;
53+
return `function(){${code}}`;
5454
}
5555
return script.split(matches[1])
56-
.join(`${matches[1]} render: ${toFunction(render.render)}, staticRenderFns: [${render.staticRenderFns.map(toFunction).join(',')}]`);
56+
.join(`${matches[1]} render: ${toFunction(render.render)}, staticRenderFns: [${render.staticRenderFns.map(toFunction).join(',')}],`);
5757
}
5858
throw new Error('[rollup-plugin-vue] could not find place to inject template in script.');
5959
}

0 commit comments

Comments
 (0)