-
-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(plugin-vue): invalidate script module cache when it changed in ho…
…t update (#11059)
- Loading branch information
sun0day
authored
Nov 25, 2022
1 parent
9693176
commit 0b3c22a
Showing
4 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<template> | ||
<h2 class="hmr-tsx">HMR</h2> | ||
<p>Click the button then edit this message. The count should be preserved.</p> | ||
<button class="hmr-tsx-inc" @click="count++">count is {{ count }}</button> | ||
</template> | ||
|
||
<script setup lang="tsx"> | ||
import { ref } from 'vue' | ||
const count = ref(0) | ||
</script> | ||
|
||
<style> | ||
.hmr-tsx-inc { | ||
color: red; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters