Skip to content

Commit

Permalink
refactor(preset): clear default theme alias logic
Browse files Browse the repository at this point in the history
  • Loading branch information
PeachScript committed May 19, 2022
1 parent 0cd8a05 commit 2780193
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/preset-dumi/src/plugins/features/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,8 @@ export default (api: IApi) => {
api.modifyConfig(memo => {
setOptions('theme', memo.themeConfig);

memo.alias = Object.assign(
// set alias for builtin default theme
{ 'dumi-theme-default': path.dirname(require.resolve('dumi-theme-default/package.json')) },
memo.alias,
);
// set alias for builtin default theme
memo.alias['dumi-theme-default'] = path.dirname(require.resolve('dumi-theme-default/package.json'));

return memo;
});
Expand Down

0 comments on commit 2780193

Please sign in to comment.