From 1a78ee3dfbe96032dd1902daead5759982a59eb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Thu, 9 Jan 2025 15:17:33 +0800 Subject: [PATCH] chore: fix targets not working --- src/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index cb84c86..29f7022 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,5 @@ -import type { IApi } from 'father'; import { exec, execSync } from 'child_process'; +import type { IApi } from 'father'; // 检查是否已安装 npm 包 function checkNpmPackageInstalled(packageName: string) { @@ -49,6 +49,9 @@ export default (api: IApi) => { platform: 'browser', output: 'lib', }, + targets: { + chrome: 85, + }, } as typeof memo); return memo;