From aec2e26e0268744e9f95977d1b929bcedd320d06 Mon Sep 17 00:00:00 2001 From: Tommy Chen Date: Sat, 8 Jun 2024 22:24:40 +0800 Subject: [PATCH] chore(cli): Remove empty else block --- packages/cli/src/commands/generate/env.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/cli/src/commands/generate/env.ts b/packages/cli/src/commands/generate/env.ts index 31c481ed4..2edee5ddb 100644 --- a/packages/cli/src/commands/generate/env.ts +++ b/packages/cli/src/commands/generate/env.ts @@ -49,8 +49,6 @@ async function importEnvNode(cwd: string): Promise { if (BUILD_FORMAT === "cjs") { // eslint-disable-next-line @typescript-eslint/no-var-requires envs.push(require(envPath)); - } else { - // TODO: Import CommonJS @kosko/env in ESM environment } // Why `@kosko/env` package has to be imported twice? Because the cache on