File tree Expand file tree Collapse file tree 4 files changed +868
-843
lines changed Expand file tree Collapse file tree 4 files changed +868
-843
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,7 @@ const hmrClient = new HMRClient(
183
183
}
184
184
return await importPromise
185
185
} ,
186
+ __FULL_BUNDLE_MODE__ ,
186
187
)
187
188
transport . connect ! ( createHMRHandler ( handleMessage ) )
188
189
Original file line number Diff line number Diff line change @@ -636,6 +636,7 @@ async function buildEnvironment(
636
636
// ? 'strict'
637
637
// : false,
638
638
// cache: options.watch ? undefined : false,
639
+ cwd : root ,
639
640
...options . rollupOptions ,
640
641
output : options . rollupOptions . output ,
641
642
input,
Original file line number Diff line number Diff line change @@ -181,6 +181,7 @@ export class HMRClient {
181
181
private transport : NormalizedModuleRunnerTransport ,
182
182
// This allows implementing reloading via different methods depending on the environment
183
183
private importUpdatedModule : ( update : Update ) => Promise < ModuleNamespace > ,
184
+ private fullBundleMode : boolean ,
184
185
) { }
185
186
186
187
public async notifyListeners < T extends string > (
@@ -296,7 +297,13 @@ export class HMRClient {
296
297
) ,
297
298
)
298
299
}
299
- const loggedPath = isSelfUpdate ? path : `${ acceptedPath } via ${ path } `
300
+ const loggedPath = this . fullBundleMode
301
+ ? isSelfUpdate
302
+ ? `/${ path } `
303
+ : `/${ acceptedPath } via /${ path } `
304
+ : isSelfUpdate
305
+ ? path
306
+ : `${ acceptedPath } via ${ path } `
300
307
this . logger . debug ( `hot updated: ${ loggedPath } ` )
301
308
} finally {
302
309
this . currentFirstInvalidatedBy = undefined
You can’t perform that action at this time.
0 commit comments