Skip to content

Commit cd11490

Browse files
committed
fix(plugin-vue): also update prev cache if script changed
1 parent b733b91 commit cd11490

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/plugin-vue/src/handleHotUpdate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export async function handleHotUpdate(
156156
if (didUpdateStyle) {
157157
updateType.push(`style`)
158158
}
159-
if (updateType.length) {
159+
if (updateType.length || scriptChanged) {
160160
if (file.endsWith('.vue')) {
161161
// invalidate the descriptor cache so that the next transform will
162162
// re-analyze the file and pick up the changes.

0 commit comments

Comments
 (0)