wip: fix binding type fallback

This commit is contained in:
Evan You
2020-11-10 17:31:09 -05:00
parent 886ed7681d
commit 3019508e75
3 changed files with 8 additions and 9 deletions

View File

@@ -685,6 +685,7 @@ export function compileScript(
if (script) {
if (startOffset < scriptStartOffset!) {
// <script setup> before <script>
s.remove(0, startOffset)
s.remove(endOffset, scriptStartOffset!)
s.remove(scriptEndOffset!, source.length)
} else {