From: Evan You Date: Tue, 17 Nov 2020 17:50:10 +0000 (-0500) Subject: wip: fix defineOptions specifier removal X-Git-Tag: v3.0.3~45 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dfac6eee99bd04fbcc2ccfb057fe3e1f7c6cfcee;p=thirdparty%2Fvuejs%2Fcore.git wip: fix defineOptions specifier removal --- diff --git a/packages/compiler-sfc/src/compileScript.ts b/packages/compiler-sfc/src/compileScript.ts index cce7a1bd11..b13729c148 100644 --- a/packages/compiler-sfc/src/compileScript.ts +++ b/packages/compiler-sfc/src/compileScript.ts @@ -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 ) }