From 8f315b2a3a57cec92a7fd94cdfa87f5b60869787 Mon Sep 17 00:00:00 2001 From: Jin Lee Date: Tue, 31 Jan 2023 11:49:27 -0800 Subject: [PATCH 1/2] fix(build): add css as having side effects --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 4d9e31523..f2c5b9c60 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,9 @@ "homepage": "https://github.com/chanzuckerberg/edu-design-system", "license": "MIT", "main": "lib/index.js", - "sideEffects": false, + "sideEffects": [ + "*.css" + ], "publishConfig": { "access": "public" }, From 93bbe0533df7115a9c49da777789b6cd0cad1239 Mon Sep 17 00:00:00 2001 From: Jin Lee Date: Tue, 31 Jan 2023 12:00:28 -0800 Subject: [PATCH 2/2] chore(build): specify css files with side effects --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f2c5b9c60..def54f266 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "license": "MIT", "main": "lib/index.js", "sideEffects": [ - "*.css" + "lib/tokens/css/variables.css", + "lib/tokens/fonts.css" ], "publishConfig": { "access": "public"