From b98ab39a1338889a75b911a9cc1990f82530b651 Mon Sep 17 00:00:00 2001 From: Aric Camarata Date: Wed, 25 Feb 2026 14:14:42 -0500 Subject: [PATCH] fix: mark dist files as having side effects The index module registers built-in calendar engines at load time via registerCalendar(). sideEffects:false was incorrect and could cause bundlers to tree-shake those registration calls. Mark only the dist entry points as having side effects so tree-shaking still works for everything else. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8cdf0d0..d2779a3 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "require": { "types": "./dist/index.d.ts", "default": "./dist/index.cjs" } } }, - "sideEffects": false, + "sideEffects": ["./dist/index.cjs", "./dist/index.mjs"], "files": [ "dist/index.cjs", "dist/index.mjs",