From 98263821f8c42abcff46fae2b0375219c84fb6a4 Mon Sep 17 00:00:00 2001 From: klwf Date: Tue, 24 Aug 2021 07:02:54 +0800 Subject: [PATCH] fix(compiler-sfc): fix ` + + `) + // ensure __default__ is declared before used + expect(content).toMatch(/const __default__[\S\s]*\.\.\.__default__/m) + assertCode(content) + }) }) describe('imports', () => { diff --git a/packages/compiler-sfc/src/compileScript.ts b/packages/compiler-sfc/src/compileScript.ts index eefddfd9..92af5bd7 100644 --- a/packages/compiler-sfc/src/compileScript.ts +++ b/packages/compiler-sfc/src/compileScript.ts @@ -1150,15 +1150,27 @@ export function compileScript( // wrap setup code with function. // export the content of