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 5d0abd5 commit 6593719Copy full SHA for 6593719
packages/vite/src/shared/hmr.ts
@@ -155,13 +155,13 @@ export class HMRContext implements ViteHotContext {
155
this.hmrClient.send({ type: 'custom', event, data })
156
}
157
158
- async getExports(): Promise<unknown> {
+ async getExports(url: string): Promise<unknown> {
159
return this.fullBundleMode
160
? Promise.resolve().then(() =>
161
// @ts-expect-error __rolldown_runtime__
162
__rolldown_runtime__.loadExports(this.ownerPath),
163
)
164
- : import(this.ownerPath)
+ : import(url)
165
166
167
private acceptDeps(
0 commit comments