From ee3ed474ed108b345c1af41b125ef0a7e8119d0a Mon Sep 17 00:00:00 2001 From: Newman Chow Date: Tue, 8 Nov 2022 17:37:52 +0800 Subject: [PATCH] Fix createElement side-effect excluded from bundle --- packages/react/package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/react/package.json b/packages/react/package.json index b11ea8d..88b798e 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -12,7 +12,9 @@ "main": "./dist/index.cjs.js", "module": "./dist/index.es.js", "types": "./dist/types/index.d.ts", - "sideEffects": false, + "sideEffects": [ + "./src/createElement.ts" + ], "exports": { ".": { "import": "./dist/index.es.js",