From 6d762a84ca0ac9a43eb3d0ab0c7b7b17c35c9836 Mon Sep 17 00:00:00 2001 From: Matias Capeletto Date: Sat, 13 Feb 2021 10:06:34 +0100 Subject: [PATCH] fix(compiler-sfc): removeSpecifier issue when removing initial imports (script-setup) (#2729) --- .../__snapshots__/compileScript.spec.ts.snap | 19 ++++++++++++++++++ .../__tests__/compileScript.spec.ts | 12 +++++++++++ packages/compiler-sfc/src/compileScript.ts | 20 +++++++++++-------- 3 files changed, 43 insertions(+), 8 deletions(-) diff --git a/packages/compiler-sfc/__tests__/__snapshots__/compileScript.spec.ts.snap b/packages/compiler-sfc/__tests__/__snapshots__/compileScript.spec.ts.snap index 01e2b80981c..59ef9b1b7ee 100644 --- a/packages/compiler-sfc/__tests__/__snapshots__/compileScript.spec.ts.snap +++ b/packages/compiler-sfc/__tests__/__snapshots__/compileScript.spec.ts.snap @@ -164,6 +164,25 @@ return { x } }" `; +exports[`SFC compile `).content + ) + }) + test('dedupe between user & helper', () => { const { content } = compile(`