wip: fix defineOptions specifier removal

This commit is contained in:
Evan You 2020-11-17 12:50:10 -05:00
parent c15bd6235e
commit dfac6eee99

View File

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