]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
wip: fix defineOptions specifier removal
authorEvan You <yyx990803@gmail.com>
Tue, 17 Nov 2020 17:50:10 +0000 (12:50 -0500)
committerEvan You <yyx990803@gmail.com>
Tue, 17 Nov 2020 17:50:10 +0000 (12:50 -0500)
packages/compiler-sfc/src/compileScript.ts

index cce7a1bd11439efba415fe5535884b5e6dd67da7..b13729c1485731011366b0efb429767555c3dfad 100644 (file)
@@ -545,7 +545,7 @@ export function compileScript(
         removed++
         s.remove(
           prev ? prev.end! + startOffset : node.start! + startOffset,
-          next ? next.start! + startOffset : node.end! + startOffset
+          next && !prev ? next.start! + startOffset : node.end! + startOffset
         )
       }