From 38fd403a6e792d723d13a16daea4223b468001cf Mon Sep 17 00:00:00 2001 From: guo shi Date: Wed, 1 Apr 2026 16:55:07 +0800 Subject: [PATCH] Update package.json to modify exports and remove browser Removed the 'browser' field and added 'exports' field for module resolution. --- package.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 84fc7f8..7aa7fe2 100644 --- a/package.json +++ b/package.json @@ -24,8 +24,16 @@ "author": "David Gamote", "main": "build/index.js", "module": "build/index.es.js", - "browser": "build/index.umd.js", "types": "build/index.d.ts", + "exports": { + ".": { + "types": "./build/index.d.ts", + "import": "./build/index.es.js", + "require": "./build/index.js", + "default": "./build/index.es.js" + }, + "./package.json": "./package.json" + }, "style": "build/index.css", "files": [ "/build"