Skip to content

Commit

Permalink
feat(mako): support windows
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Sep 9, 2024
1 parent 57cd698 commit bed4fc3
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packages/preset-umi/src/features/mako/mako.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
EntryAssets,
extractEntryAssets,
} from '../../utils/extractEntryAssets';
import { isWindows } from '../../utils/platform';

export default (api: IApi) => {
api.describe({
Expand Down Expand Up @@ -58,12 +57,6 @@ export default (api: IApi) => {
};

api.modifyConfig((memo) => {
// @TODO remove this when mako support windows
if (isWindows) {
memo.mako = false;
process.env.OKAM = '';
return memo;
}
const makoPlugins = memo.mako?.plugins || [];
if (!api.config.mpa) {
makoPlugins.push({
Expand Down

0 comments on commit bed4fc3

Please sign in to comment.