Skip to content

Commit

Permalink
fix: 产物格式错误
Browse files Browse the repository at this point in the history
  • Loading branch information
meixg committed Jan 25, 2022
1 parent c353e71 commit ea88306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/callSanSsr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function makeCustomRenderFunction(
code += 'Object.keys(originSanSSRRenders).forEach(renderName => {\n';
code += ' originSanSSRRenders[renderName] = makeRender(originSanSSRRenders[renderName]);\n';
code += '});\n';
code += 'module.exports = Object.assign(sanSSRResolver.getRenderer({id: "default"}), exports)';
code += 'module.exports = Object.assign(sanSSRResolver.getRenderer({id: "default"}), exports);\n';
code += 'function makeRender(originRender) {\n';
code += ' return function (data, ...params) {\n';
code += ' if (global.__COMPONENT_CONTEXT__) {\n';
Expand Down

0 comments on commit ea88306

Please sign in to comment.