@@ -138,7 +138,10 @@ export class DevPlugin implements WebpackPluginInstance {
138
138
const defaultConsumeTypes = { consumeAPITypes : true } ;
139
139
const normalizedDtsOptions =
140
140
normalizeOptions < moduleFederationPlugin . PluginDtsOptions > (
141
- isTSProject ( undefined , compiler . context ) ,
141
+ isTSProject (
142
+ typeof dts === 'object' ? dts . tsConfigPath : undefined ,
143
+ compiler . context ,
144
+ ) ,
142
145
{
143
146
// remote types dist(.dev-server) not be used currently, so no need to set extractThirdParty etc
144
147
generateTypes : defaultGenerateTypes ,
@@ -150,7 +153,7 @@ export class DevPlugin implements WebpackPluginInstance {
150
153
151
154
const normalizedGenerateTypes =
152
155
normalizeOptions < moduleFederationPlugin . DtsRemoteOptions > (
153
- normalizedDtsOptions === false ,
156
+ Boolean ( normalizedDtsOptions ) ,
154
157
defaultGenerateTypes ,
155
158
'mfOptions.dts.generateTypes' ,
156
159
) (
@@ -202,9 +205,24 @@ export class DevPlugin implements WebpackPluginInstance {
202
205
abortOnError : false ,
203
206
...normalizedConsumeTypes ,
204
207
} ;
208
+
205
209
const extraOptions = normalizedDtsOptions
206
210
? normalizedDtsOptions . extraOptions || { }
207
211
: { } ;
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
+
208
226
this . _devWorker = createDevWorker ( {
209
227
name,
210
228
remote : remote ,
0 commit comments