fix(cli): missing compileTemplate id

This commit is contained in:
chenjiahan
2020-12-01 19:30:59 +08:00
parent 7abed2a902
commit baf0d7776b
2 changed files with 172 additions and 0 deletions

View File

@@ -78,6 +78,7 @@ export async function compileSfc(filePath: string): Promise<any> {
if (template) {
const render = compileTemplate({
id: scopeId,
source: template.content,
filename: filePath,
}).code;