From 03b39624c32adde84adae74c4e320ce389d0eddb Mon Sep 17 00:00:00 2001 From: Kirill Kharitonov Date: Tue, 17 Dec 2024 18:15:48 +0100 Subject: [PATCH] feat(build): added a sideEffects property for tree shaking package (#522) --- package.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index b29f2da3..2a4ab3ee 100644 --- a/package.json +++ b/package.json @@ -313,5 +313,13 @@ "prettier --write" ], "*.{md,json,yaml,yml}": "prettier --write" - } + }, + "sideEffects": [ + "*.css", + "*.scss", + "src/shortcuts/index.ts", + "src/shortcuts/default.ts", + "build/**/shortcuts/index.js", + "build/**/shortcuts/default.js" + ] }