From 608885350b469588541457511d7e3dccdaabfe86 Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 7 Jul 2020 19:47:16 -0400 Subject: [PATCH] wip: compileScript typed signature generation --- packages/compiler-sfc/src/compileScript.ts | 200 ++++++++++++++------- 1 file changed, 135 insertions(+), 65 deletions(-) diff --git a/packages/compiler-sfc/src/compileScript.ts b/packages/compiler-sfc/src/compileScript.ts index 5305709f..af0c5952 100644 --- a/packages/compiler-sfc/src/compileScript.ts +++ b/packages/compiler-sfc/src/compileScript.ts @@ -45,7 +45,7 @@ export function compileScriptSetup( } const bindings: BindingMetadata = {} - const imports: Record = {} + const imports: Record = {} const setupScopeVars: Record = {} const setupExports: Record = {} let exportAllIndex = 0 @@ -59,13 +59,12 @@ export function compileScriptSetup( const scriptEndOffset = script && script.loc.end.offset // parse and transform