underfin / vite-plugin-vue2

Vue2 plugin for Vite
620 stars 83 forks source link

HMR not working with .tsx files #180

Open yandongxu opened 2 years ago

yandongxu commented 2 years ago

Always trigger page reload when .tsx files changed.

hexf00 commented 2 years ago

Always trigger page reload when .tsx files changed.

+1 Similar issues see https://github.com/underfin/vite-plugin-vue2/issues/88, in 88 issue, the entry is .vue, and use <script lang = "JSX" > in vue file.

The issue difference is entry is .tsx.

p.s. my tsx component code

import { Component, Vue } from 'vue-property-decorator'

@Component
export default class Hello extends Vue {
  render () {
    return <div>Hello</div>
  }
}