Skip to content

Commit

Permalink
feat(qiankun): 默认 library 不加上 chunk 名
Browse files Browse the repository at this point in the history
  • Loading branch information
kuitos committed Aug 17, 2023
1 parent 881281c commit 1edaf5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/plugin-qiankun/examples/master/.umirc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default {
},
qiankun: {
master: {
appNameKeyAlias: 'id'
appNameKeyAlias: 'id',
},
},
routes: [
Expand All @@ -37,6 +37,7 @@ export default {
},
microAppProps: {
autoSetLoading: true,
autoCaptureError: true,
className: 'appClassName',
wrapperClassName: 'wrapperClass',
},
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-qiankun/src/slave/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ export default function (api: IApi) {
api.chainWebpack((config, { webpack }) => {
assert(api.pkg.name, 'You should have name in package.json');

const { shouldNotAddLibraryChunkName } = (api.config.qiankun || {}).slave!;
const { shouldNotAddLibraryChunkName = true } = (api.config.qiankun || {})
.slave!;

config.output
.libraryTarget('umd')
Expand Down

0 comments on commit 1edaf5e

Please sign in to comment.