feat(sfc): withDefaults helper

This commit is contained in:
Evan You
2021-06-26 21:11:57 -04:00
parent 3ffc7be864
commit 4c5844a9ca
9 changed files with 492 additions and 165 deletions

View File

@@ -214,7 +214,12 @@ async function doCompileScript(
return [code, compiledScript.bindings]
} catch (e) {
store.errors = [e]
store.errors = [
e.stack
.split('\n')
.slice(0, 12)
.join('\n')
]
return
}
} else {