### Version 15.9.2 ### Reproduction link [https://github.com/tianjianchn/vue-hello-world/tree/vue-loader-hot-reload-bug](https://github.com/tianjianchn/vue-hello-world/tree/vue-loader-hot-reload-bug) ### Steps to reproduce 1. add data `count` 2. add button in template, which will increment `count` by 1 when clicking 3. then add an new element in template in new line, save the file ### What is expected? the `count` value should be kept, other than restored to the initial value. ### What is actually happening? the `count` value was restored to the initial value. ---  <!-- generated by vue-issues. DO NOT REMOVE -->