@@ -43,7 +43,7 @@ export class Context {
4343this . options = resolveOptions ( rawOptions , this . root )
4444this . sourcemap = rawOptions . sourcemap ?? true
4545this . generateDeclaration = throttle ( 500 , this . _generateDeclaration . bind ( this ) , { noLeading :false } )
46- this . _removeUnused = this . options . syncMode === 'overwrite '
46+ this . _removeUnused = this . options . syncMode !== 'append '
4747
4848if ( this . options . dumpComponentsInfo ) {
4949const dumpComponentsInfo = this . options . dumpComponentsInfo === true
@@ -80,13 +80,13 @@ export class Context {
8080return
8181
8282this . _server = server
83- this . _removeUnused = this . options . syncMode !== 'append '
83+ this . _removeUnused = this . options . syncMode === 'overwrite '
8484this . setupWatcher ( server . watcher )
8585}
8686
8787setupWatcher ( watcher :fs . FSWatcher ) {
8888const { globs} = this . options
89-
89+ this . _removeUnused = this . options . syncMode === 'overwrite'
9090watcher
9191. on ( 'unlink' , ( path ) => {
9292if ( ! matchGlobs ( path , globs ) )
@@ -112,7 +112,7 @@ export class Context {
112112 */
113113setupWatcherWebpack ( watcher :fs . FSWatcher , emitUpdate :( path :string , type :'unlink' | 'add' ) => void ) {
114114const { globs} = this . options
115-
115+ this . _removeUnused = this . options . syncMode === 'overwrite'
116116watcher
117117. on ( 'unlink' , ( path ) => {
118118if ( ! matchGlobs ( path , globs ) )