From 3ddb441c563af50e4252d1092f791697af768135 Mon Sep 17 00:00:00 2001 From: likui <2218301630@qq.com> Date: Tue, 4 Feb 2020 22:24:49 +0800 Subject: [PATCH] wip(ssr): fix naming for runtime helpers (#694) --- packages/compiler-ssr/src/runtimeHelpers.ts | 4 ++-- packages/server-renderer/src/index.ts | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/compiler-ssr/src/runtimeHelpers.ts b/packages/compiler-ssr/src/runtimeHelpers.ts index b986ce7f..06df6b25 100644 --- a/packages/compiler-ssr/src/runtimeHelpers.ts +++ b/packages/compiler-ssr/src/runtimeHelpers.ts @@ -17,7 +17,7 @@ registerRuntimeHelpers({ [SSR_RENDER_SLOT]: `_renderSlot`, [SSR_RENDER_CLASS]: `_renderClass`, [SSR_RENDER_STYLE]: `_renderStyle`, - [SSR_RENDER_ATTRS]: `renderAttrs`, - [SSR_RENDER_ATTR]: `renderAttr`, + [SSR_RENDER_ATTRS]: `_renderAttrs`, + [SSR_RENDER_ATTR]: `_renderAttr`, [SSR_RENDER_LIST]: `_renderList` }) diff --git a/packages/server-renderer/src/index.ts b/packages/server-renderer/src/index.ts index cec20831..2d4c2884 100644 --- a/packages/server-renderer/src/index.ts +++ b/packages/server-renderer/src/index.ts @@ -9,7 +9,8 @@ export { export { renderClass as _renderClass, renderStyle as _renderStyle, - renderAttrs as _renderAttrs + renderAttrs as _renderAttrs, + renderAttr as _renderAttr } from './helpers/renderAttrs' export { interpolate as _interpolate } from './helpers/interpolate' export { renderList as _renderList } from './helpers/renderList'