File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
packages/dts-plugin/src/plugins Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @module-federation/dts-plugin ' : patch
3+ ---
4+
5+ fix(dts-plugin): correct generateTypes host params
Original file line number Diff line number Diff line change @@ -67,7 +67,12 @@ export const normalizeGenerateTypesOptions = ({
6767 : {
6868 context,
6969 moduleFederationConfig : pluginOptions ,
70- ...normalizedGenerateTypes ,
70+ ...normalizedConsumeTypes ,
71+ // generateTypes only use host basic config, eg: typeFolders
72+ remoteTypeUrls :
73+ typeof normalizedConsumeTypes ?. remoteTypeUrls === 'object'
74+ ? normalizedConsumeTypes ?. remoteTypeUrls
75+ : undefined ,
7176 } ,
7277 extraOptions : dtsOptions . extraOptions || { } ,
7378 displayErrorInTerminal : dtsOptions . displayErrorInTerminal ,
You can’t perform that action at this time.
0 commit comments