Skip to content

Commit 52bcb81

Browse files
committed
fix: remove redundant hmr handling
1 parent b30a914 commit 52bcb81

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

packages/unplugin-vue-i18n/src/core/resource.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -212,18 +212,6 @@ export function resourcePlugin(
212212
return orgTransform!.apply(this, [code, id])
213213
}
214214
}
215-
},
216-
217-
async handleHotUpdate({ file, server }) {
218-
if (/\.(json5?|ya?ml)$/.test(file)) {
219-
const module = server.moduleGraph.getModuleById(
220-
asVirtualId(INTLIFY_BUNDLE_IMPORT_ID, meta.framework)
221-
)
222-
if (module) {
223-
server.moduleGraph.invalidateModule(module)
224-
return [module]
225-
}
226-
}
227215
}
228216
},
229217

0 commit comments

Comments
 (0)