From 8a123ac34fd30fc36ac9e0c252dd345d6d7c7f50 Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 12 May 2022 18:56:54 +0800 Subject: [PATCH] fix(compiler-sfc): fix treeshaking of namespace import when used in template fix #5209 --- .../__tests__/__snapshots__/compileScript.spec.ts.snap | 4 +++- packages/compiler-sfc/__tests__/compileScript.spec.ts | 4 ++++ packages/compiler-sfc/src/compileScript.ts | 9 +++++++-- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/packages/compiler-sfc/__tests__/__snapshots__/compileScript.spec.ts.snap b/packages/compiler-sfc/__tests__/__snapshots__/compileScript.spec.ts.snap index 757b1534..55ed14aa 100644 --- a/packages/compiler-sfc/__tests__/__snapshots__/compileScript.spec.ts.snap +++ b/packages/compiler-sfc/__tests__/__snapshots__/compileScript.spec.ts.snap @@ -777,6 +777,7 @@ exports[`SFC compile