From cadeda19e99c7968a794d8c966405c616b858588 Mon Sep 17 00:00:00 2001 From: viocha <1457174277@qq.com> Date: Thu, 15 May 2025 10:40:36 +0000 Subject: [PATCH] Update build script to include globals for React --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 671b0bf..1248be7 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ }, "sideEffects": false, "scripts": { - "build": "microbundle && cp ./dist/index.d.ts ./dist/index.d.mts", + "build": "microbundle --globals react=React && cp ./dist/index.d.ts ./dist/index.d.mts", "test": "echo \"Error: no test specified\" && exit 1" }, "repository": {