Skip to content

Commit

Permalink
fix(mako): add default plugin key when mako is enabled (#12264)
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc authored Apr 7, 2024
1 parent 8d307e8 commit 568c220
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/preset-umi/src/features/tmpFiles/tmpFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,9 @@ if (process.env.NODE_ENV === 'development') {
const validKeys = await api.applyPlugins({
key: 'addRuntimePluginKey',
initialValue: [
// why add default?
// ref: https://github.com/umijs/mako/issues/1026
...(process.env.OKAM ? ['default'] : []),
'patchRoutes',
'patchClientRoutes',
'modifyContextOpts',
Expand Down

0 comments on commit 568c220

Please sign in to comment.