diff --git a/packages/compiler-core/src/codegen.ts b/packages/compiler-core/src/codegen.ts index 53551be9bc7..fab88a2ff4c 100644 --- a/packages/compiler-core/src/codegen.ts +++ b/packages/compiler-core/src/codegen.ts @@ -204,10 +204,11 @@ export function generate( genFunctionPreamble(ast, context) } - // enter render function + // binding optimizations const optimizeSources = options.bindingMetadata ? `, $props, $setup, $data, $options` : `` + // enter render function if (!ssr) { if (genScopeId) { push(`const render = ${PURE_ANNOTATION}_withId(`) diff --git a/packages/compiler-core/src/options.ts b/packages/compiler-core/src/options.ts index d819b226b55..c5e9deaf02f 100644 --- a/packages/compiler-core/src/options.ts +++ b/packages/compiler-core/src/options.ts @@ -126,6 +126,11 @@ export interface TransformOptions { * `ssrRender` option instead of `render`. */ ssr?: boolean + /** + * SFC