From 6ea995d6ef1720c983a6cedd45e8b3f16227ffe4 Mon Sep 17 00:00:00 2001 From: andrew0 <739172+andrew0@users.noreply.github.com> Date: Tue, 22 Sep 2020 05:59:59 -0400 Subject: [PATCH] fix(dev): script gencode should place top to reflect sourcemap (#8) --- src/serverPlugin.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/serverPlugin.ts b/src/serverPlugin.ts index 800f625..33f2b20 100644 --- a/src/serverPlugin.ts +++ b/src/serverPlugin.ts @@ -183,9 +183,8 @@ async function parseSFC( } let code = - ` + `${scriptImport} ${templateImport} -${scriptImport} const __cssModules = {} ${stylesCode} /* normalize component */