We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 365fabb commit 31d9038Copy full SHA for 31d9038
packages/vite/src/client/client.ts
@@ -644,7 +644,8 @@ if (isFullBundleMode && typeof DevRuntime !== 'undefined') {
644
transport.send({
645
type: 'custom',
646
event: 'vite:module-loaded',
647
- data: { modules: message.modules },
+ // clone array as the runtime reuses the array instance
648
+ data: { modules: message.modules.slice() },
649
})
650
break
651
}
0 commit comments