@@ -138,7 +138,10 @@ export class DevPlugin implements WebpackPluginInstance {
138138 const defaultConsumeTypes = { consumeAPITypes : true } ;
139139 const normalizedDtsOptions =
140140 normalizeOptions < moduleFederationPlugin . PluginDtsOptions > (
141- isTSProject ( undefined , compiler . context ) ,
141+ isTSProject (
142+ typeof dts === 'object' ? dts . tsConfigPath : undefined ,
143+ compiler . context ,
144+ ) ,
142145 {
143146 // remote types dist(.dev-server) not be used currently, so no need to set extractThirdParty etc
144147 generateTypes : defaultGenerateTypes ,
@@ -150,7 +153,7 @@ export class DevPlugin implements WebpackPluginInstance {
150153
151154 const normalizedGenerateTypes =
152155 normalizeOptions < moduleFederationPlugin . DtsRemoteOptions > (
153- normalizedDtsOptions === false ,
156+ Boolean ( normalizedDtsOptions ) ,
154157 defaultGenerateTypes ,
155158 'mfOptions.dts.generateTypes' ,
156159 ) (
@@ -202,9 +205,24 @@ export class DevPlugin implements WebpackPluginInstance {
202205 abortOnError : false ,
203206 ...normalizedConsumeTypes ,
204207 } ;
208+
205209 const extraOptions = normalizedDtsOptions
206210 ? normalizedDtsOptions . extraOptions || { }
207211 : { } ;
212+
213+ if ( ! remote && ! host && normalizedDev . disableLiveReload ) {
214+ return ;
215+ }
216+
217+ if (
218+ remote &&
219+ ! remote ?. tsConfigPath &&
220+ typeof normalizedDtsOptions === 'object' &&
221+ normalizedDtsOptions . tsConfigPath
222+ ) {
223+ remote . tsConfigPath = normalizedDtsOptions . tsConfigPath ;
224+ }
225+
208226 this . _devWorker = createDevWorker ( {
209227 name,
210228 remote : remote ,
0 commit comments