From c0db355c76c24d6a6a92a36f9307b0edeb443c65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=97=8D+85CD?= <50108258+kwaa@users.noreply.github.com> Date: Sun, 10 Nov 2024 20:30:06 +0800 Subject: [PATCH] refactor: make `whatwg-fetch` optional --- package.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 921812a..9c60af6 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,12 @@ "typescript": "^5.3.2", "unbuild": "^2.0.0" }, - "dependencies": { + "peerDependencies": { "whatwg-fetch": "^3.6.20" + }, + "peerDependenciesMeta": { + "whatwg-fetch": { + "optional": true + } } }