Skip to content

Commit 8f6f2f8

Browse files
authored
fix: use this.environment in hotUpdate for Vite 7 (#150)
1 parent 54d7c55 commit 8f6f2f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,9 @@ export default function PluginInspect(options: ViteInspectOptions = {}): Plugin
252252
return null
253253
},
254254
},
255-
hotUpdate({ modules, environment }) {
255+
hotUpdate({ modules }) {
256256
const ids = modules.map(module => module.id)
257-
environment.hot.send({
257+
this.environment.hot.send({
258258
type: 'custom',
259259
event: 'vite-plugin-inspect:update',
260260
data: { ids } as HMRData,

0 commit comments

Comments
 (0)