From bed4fc3b0ef293e6067ff1f6a3a30d7941562b5c Mon Sep 17 00:00:00 2001 From: sorrycc Date: Mon, 9 Sep 2024 17:31:22 +0800 Subject: [PATCH] feat(mako): support windows --- packages/preset-umi/src/features/mako/mako.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/packages/preset-umi/src/features/mako/mako.ts b/packages/preset-umi/src/features/mako/mako.ts index 52505ccf0fb9..0c4f2389cdbc 100644 --- a/packages/preset-umi/src/features/mako/mako.ts +++ b/packages/preset-umi/src/features/mako/mako.ts @@ -4,7 +4,6 @@ import { EntryAssets, extractEntryAssets, } from '../../utils/extractEntryAssets'; -import { isWindows } from '../../utils/platform'; export default (api: IApi) => { api.describe({ @@ -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({