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 4a45254 commit 7cb8db2Copy full SHA for 7cb8db2
packages/vite/src/shared/hmr.ts
@@ -155,6 +155,15 @@ export class HMRContext implements ViteHotContext {
155
this.hmrClient.send({ type: 'custom', event, data })
156
}
157
158
+ async getExports(): 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)
165
+ }
166
+
167
private acceptDeps(
168
deps: string[],
169
callback: HotCallback['fn'] = () => {},
0 commit comments