File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -123,14 +123,14 @@ export interface IRuntimeConfig {
123123 //
124124 api . addHTMLHeadScripts ( ( ) => {
125125 const dontModify =
126- api . config . qiankun ?. child ?. shouldNotModifyRuntimePublicPath ;
126+ api . userConfig . qiankun ?. child ?. shouldNotModifyRuntimePublicPath ;
127127 return dontModify
128128 ? [ ]
129129 : [
130130 `
131131 __webpack_public_path__ = window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__;
132132 window.publicPath = window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__ || "${
133- api . config . publicPath || '/'
133+ api . userConfig . publicPath || '/'
134134 } ";`,
135135 ] ;
136136 } ) ;
@@ -141,8 +141,8 @@ export interface IRuntimeConfig {
141141 // mfsu 线上不会开启,所以这里只需要判断本地是否开启即可
142142 const {
143143 shouldNotAddLibraryChunkName = api . env === 'production' ||
144- ! api . config . mfsu ,
145- } = api . config . qiankun ?. child || { } ;
144+ ! api . userConfig . mfsu ,
145+ } = api . userConfig . qiankun ?. child || { } ;
146146 config . output
147147 . libraryTarget ( 'umd' )
148148 . library (
@@ -178,8 +178,8 @@ export interface IRuntimeConfig {
178178 api . addEntryCode ( ( ) => [
179179 `
180180export const bootstrap = qiankun_genBootstrap(render);
181- export const mount = qiankun_genMount('${ api . config . mountElementId } ');
182- export const unmount = qiankun_genUnmount('${ api . config . mountElementId } ');
181+ export const mount = qiankun_genMount('${ api . userConfig . mountElementId } ');
182+ export const unmount = qiankun_genUnmount('${ api . userConfig . mountElementId } ');
183183export const update = qiankun_genUpdate();
184184if (!window.__POWERED_BY_QIANKUN__) {
185185 bootstrap().then(mount);
You can’t perform that action at this time.
0 commit comments