From 58813391d19be810489c9debfd0d2dbc534d2b1d Mon Sep 17 00:00:00 2001 From: Robbert Broersma Date: Sun, 24 Nov 2024 22:39:20 +0100 Subject: [PATCH] fix: remove `"sideEffects": true` from `package.json` --- .changeset/few-dancers-argue.md | 29 +++++++++++++++++++ packages/build-utils-react/src/init.mjs | 1 - packages/component-library-react/package.json | 1 - .../components-react/body-react/package.json | 1 - .../button-react/package.json | 1 - .../calendar-react/package.json | 1 - .../checkbox-group-react/package.json | 1 - .../checkbox-react/package.json | 1 - .../combobox-react/package.json | 1 - .../fieldset-react/package.json | 1 - .../form-field-checkbox-react/package.json | 1 - .../form-field-description-react/package.json | 1 - .../package.json | 1 - .../form-field-react/package.json | 1 - .../form-label-react/package.json | 1 - .../components-react/link-react/package.json | 1 - .../listbox-react/package.json | 1 - .../nav-bar-react/package.json | 1 - .../page-body-react/package.json | 1 - .../page-footer-react/package.json | 1 - .../page-header-react/package.json | 1 - .../page-layout-react/package.json | 1 - .../radio-button-react/package.json | 1 - .../radio-group-react/package.json | 1 - .../components-react/root-react/package.json | 1 - .../select-combobox-react/package.json | 1 - .../textbox-react/package.json | 1 - 27 files changed, 29 insertions(+), 26 deletions(-) create mode 100644 .changeset/few-dancers-argue.md diff --git a/.changeset/few-dancers-argue.md b/.changeset/few-dancers-argue.md new file mode 100644 index 00000000000..03006f2e3c7 --- /dev/null +++ b/.changeset/few-dancers-argue.md @@ -0,0 +1,29 @@ +--- +"@utrecht/body-react": patch +"@utrecht/button-react": patch +"@utrecht/calendar-react": patch +"@utrecht/checkbox-group-react": patch +"@utrecht/checkbox-react": patch +"@utrecht/combobox-react": patch +"@utrecht/component-library-react": patch +"@utrecht/fieldset-react": patch +"@utrecht/form-field-checkbox-react": patch +"@utrecht/form-field-description-react": patch +"@utrecht/form-field-error-message-react": patch +"@utrecht/form-field-react": patch +"@utrecht/form-label-react": patch +"@utrecht/link-react": patch +"@utrecht/listbox-react": patch +"@utrecht/nav-bar-react": patch +"@utrecht/page-body-react": patch +"@utrecht/page-footer-react": patch +"@utrecht/page-header-react": patch +"@utrecht/page-layout-react": patch +"@utrecht/radio-button-react": patch +"@utrecht/radio-group-react": patch +"@utrecht/root-react": patch +"@utrecht/select-combobox-react": patch +"@utrecht/textbox-react": patch +--- + +Remove `"sideEffects": true` from `package.json` to prevent tree shaking CSS injection' diff --git a/packages/build-utils-react/src/init.mjs b/packages/build-utils-react/src/init.mjs index 7b92102e6b8..0dacaaabf02 100755 --- a/packages/build-utils-react/src/init.mjs +++ b/packages/build-utils-react/src/init.mjs @@ -9,7 +9,6 @@ const init = async () => { // Base `package.json` file { type: 'module', - sideEffects: false, publishConfig: { access: 'public', }, diff --git a/packages/component-library-react/package.json b/packages/component-library-react/package.json index 2fa2935b2d6..b50f5f758ab 100644 --- a/packages/component-library-react/package.json +++ b/packages/component-library-react/package.json @@ -17,7 +17,6 @@ }, "license": "EUPL-1.2", "author": "Community for NL Design System", - "sideEffects": false, "type": "module", "exports": { ".": { diff --git a/packages/components-react/body-react/package.json b/packages/components-react/body-react/package.json index 63e1fe6bdfd..047b5210f73 100644 --- a/packages/components-react/body-react/package.json +++ b/packages/components-react/body-react/package.json @@ -16,7 +16,6 @@ }, "license": "EUPL-1.2", "author": "Community for NL Design System", - "sideEffects": false, "type": "module", "exports": { ".": { diff --git a/packages/components-react/button-react/package.json b/packages/components-react/button-react/package.json index 36248397b1f..777ca492056 100644 --- a/packages/components-react/button-react/package.json +++ b/packages/components-react/button-react/package.json @@ -16,7 +16,6 @@ }, "license": "EUPL-1.2", "author": "Community for NL Design System", - "sideEffects": false, "type": "module", "exports": { ".": { diff --git a/packages/components-react/calendar-react/package.json b/packages/components-react/calendar-react/package.json index 4e1730742d8..46352e6068b 100644 --- a/packages/components-react/calendar-react/package.json +++ b/packages/components-react/calendar-react/package.json @@ -16,7 +16,6 @@ }, "license": "EUPL-1.2", "author": "Community for NL Design System", - "sideEffects": false, "type": "module", "exports": { ".": { diff --git a/packages/components-react/checkbox-group-react/package.json b/packages/components-react/checkbox-group-react/package.json index 4294281855e..a1b46cfc8c9 100644 --- a/packages/components-react/checkbox-group-react/package.json +++ b/packages/components-react/checkbox-group-react/package.json @@ -16,7 +16,6 @@ }, "license": "EUPL-1.2", "author": "Community for NL Design System", - "sideEffects": false, "type": "module", "exports": { ".": { diff --git a/packages/components-react/checkbox-react/package.json b/packages/components-react/checkbox-react/package.json index 1a57f8f33da..939da118b65 100644 --- a/packages/components-react/checkbox-react/package.json +++ b/packages/components-react/checkbox-react/package.json @@ -16,7 +16,6 @@ }, "license": "EUPL-1.2", "author": "Community for NL Design System", - "sideEffects": false, "type": "module", "exports": { ".": { diff --git a/packages/components-react/combobox-react/package.json b/packages/components-react/combobox-react/package.json index 6bf890843d9..d40a2bf6240 100644 --- a/packages/components-react/combobox-react/package.json +++ b/packages/components-react/combobox-react/package.json @@ -16,7 +16,6 @@ }, "license": "EUPL-1.2", "author": "Community for NL Design System", - "sideEffects": false, "type": "module", "exports": { ".": { diff --git a/packages/components-react/fieldset-react/package.json b/packages/components-react/fieldset-react/package.json index a318c414f26..3ab1e2f9780 100644 --- a/packages/components-react/fieldset-react/package.json +++ b/packages/components-react/fieldset-react/package.json @@ -16,7 +16,6 @@ }, "license": "EUPL-1.2", "author": "Community for NL Design System", - "sideEffects": false, "type": "module", "exports": { ".": { diff --git a/packages/components-react/form-field-checkbox-react/package.json b/packages/components-react/form-field-checkbox-react/package.json index 4f51e1bef39..02c8e98afa0 100644 --- a/packages/components-react/form-field-checkbox-react/package.json +++ b/packages/components-react/form-field-checkbox-react/package.json @@ -16,7 +16,6 @@ }, "license": "EUPL-1.2", "author": "Community for NL Design System", - "sideEffects": false, "type": "module", "exports": { ".": { diff --git a/packages/components-react/form-field-description-react/package.json b/packages/components-react/form-field-description-react/package.json index ae6d2da1a89..f5e9ea33d60 100644 --- a/packages/components-react/form-field-description-react/package.json +++ b/packages/components-react/form-field-description-react/package.json @@ -16,7 +16,6 @@ }, "license": "EUPL-1.2", "author": "Community for NL Design System", - "sideEffects": false, "type": "module", "exports": { ".": { diff --git a/packages/components-react/form-field-error-message-react/package.json b/packages/components-react/form-field-error-message-react/package.json index 716f0fb8ba4..be03d287aa6 100644 --- a/packages/components-react/form-field-error-message-react/package.json +++ b/packages/components-react/form-field-error-message-react/package.json @@ -16,7 +16,6 @@ }, "license": "EUPL-1.2", "author": "Community for NL Design System", - "sideEffects": false, "type": "module", "exports": { ".": { diff --git a/packages/components-react/form-field-react/package.json b/packages/components-react/form-field-react/package.json index c0f9f8028d0..24f31fbee0d 100644 --- a/packages/components-react/form-field-react/package.json +++ b/packages/components-react/form-field-react/package.json @@ -16,7 +16,6 @@ }, "license": "EUPL-1.2", "author": "Community for NL Design System", - "sideEffects": false, "type": "module", "exports": { ".": { diff --git a/packages/components-react/form-label-react/package.json b/packages/components-react/form-label-react/package.json index a87aeeffa9d..8fe2ccd56ca 100644 --- a/packages/components-react/form-label-react/package.json +++ b/packages/components-react/form-label-react/package.json @@ -16,7 +16,6 @@ }, "license": "EUPL-1.2", "author": "Community for NL Design System", - "sideEffects": false, "type": "module", "exports": { ".": { diff --git a/packages/components-react/link-react/package.json b/packages/components-react/link-react/package.json index 68fbdeec97c..adb47fa3305 100644 --- a/packages/components-react/link-react/package.json +++ b/packages/components-react/link-react/package.json @@ -16,7 +16,6 @@ }, "license": "EUPL-1.2", "author": "Community for NL Design System", - "sideEffects": false, "type": "module", "exports": { ".": { diff --git a/packages/components-react/listbox-react/package.json b/packages/components-react/listbox-react/package.json index ad4a53c6dcd..e097073a22d 100644 --- a/packages/components-react/listbox-react/package.json +++ b/packages/components-react/listbox-react/package.json @@ -16,7 +16,6 @@ }, "license": "EUPL-1.2", "author": "Community for NL Design System", - "sideEffects": false, "type": "module", "exports": { ".": { diff --git a/packages/components-react/nav-bar-react/package.json b/packages/components-react/nav-bar-react/package.json index 4b24aabcef8..90ef55ccc67 100644 --- a/packages/components-react/nav-bar-react/package.json +++ b/packages/components-react/nav-bar-react/package.json @@ -16,7 +16,6 @@ }, "license": "EUPL-1.2", "author": "Community for NL Design System", - "sideEffects": false, "type": "module", "exports": { ".": { diff --git a/packages/components-react/page-body-react/package.json b/packages/components-react/page-body-react/package.json index 615075338e4..0af65d9de76 100644 --- a/packages/components-react/page-body-react/package.json +++ b/packages/components-react/page-body-react/package.json @@ -16,7 +16,6 @@ }, "license": "EUPL-1.2", "author": "Community for NL Design System", - "sideEffects": false, "type": "module", "exports": { ".": { diff --git a/packages/components-react/page-footer-react/package.json b/packages/components-react/page-footer-react/package.json index 41ca7a8bc3c..f1b2ecaf18b 100644 --- a/packages/components-react/page-footer-react/package.json +++ b/packages/components-react/page-footer-react/package.json @@ -16,7 +16,6 @@ }, "license": "EUPL-1.2", "author": "Community for NL Design System", - "sideEffects": false, "type": "module", "exports": { ".": { diff --git a/packages/components-react/page-header-react/package.json b/packages/components-react/page-header-react/package.json index 21ddcc3d6ec..3ad301ce012 100644 --- a/packages/components-react/page-header-react/package.json +++ b/packages/components-react/page-header-react/package.json @@ -16,7 +16,6 @@ }, "license": "EUPL-1.2", "author": "Community for NL Design System", - "sideEffects": false, "type": "module", "exports": { ".": { diff --git a/packages/components-react/page-layout-react/package.json b/packages/components-react/page-layout-react/package.json index 2eb2f2b7528..f4b1ca6ef2b 100644 --- a/packages/components-react/page-layout-react/package.json +++ b/packages/components-react/page-layout-react/package.json @@ -16,7 +16,6 @@ }, "license": "EUPL-1.2", "author": "Community for NL Design System", - "sideEffects": false, "type": "module", "exports": { ".": { diff --git a/packages/components-react/radio-button-react/package.json b/packages/components-react/radio-button-react/package.json index f384ff1fa9f..7d986b46b37 100644 --- a/packages/components-react/radio-button-react/package.json +++ b/packages/components-react/radio-button-react/package.json @@ -16,7 +16,6 @@ }, "license": "EUPL-1.2", "author": "Community for NL Design System", - "sideEffects": false, "type": "module", "exports": { ".": { diff --git a/packages/components-react/radio-group-react/package.json b/packages/components-react/radio-group-react/package.json index 314458e6a80..9e1e1e1acc7 100644 --- a/packages/components-react/radio-group-react/package.json +++ b/packages/components-react/radio-group-react/package.json @@ -16,7 +16,6 @@ }, "license": "EUPL-1.2", "author": "Community for NL Design System", - "sideEffects": false, "type": "module", "exports": { ".": { diff --git a/packages/components-react/root-react/package.json b/packages/components-react/root-react/package.json index ebe30c61359..2dc8a1ede51 100644 --- a/packages/components-react/root-react/package.json +++ b/packages/components-react/root-react/package.json @@ -16,7 +16,6 @@ }, "license": "EUPL-1.2", "author": "Community for NL Design System", - "sideEffects": false, "type": "module", "exports": { ".": { diff --git a/packages/components-react/select-combobox-react/package.json b/packages/components-react/select-combobox-react/package.json index cec39056083..624fc8a8379 100644 --- a/packages/components-react/select-combobox-react/package.json +++ b/packages/components-react/select-combobox-react/package.json @@ -16,7 +16,6 @@ }, "license": "EUPL-1.2", "author": "Community for NL Design System", - "sideEffects": false, "type": "module", "exports": { ".": { diff --git a/packages/components-react/textbox-react/package.json b/packages/components-react/textbox-react/package.json index f88f81a6cfa..007b57e3296 100644 --- a/packages/components-react/textbox-react/package.json +++ b/packages/components-react/textbox-react/package.json @@ -16,7 +16,6 @@ }, "license": "EUPL-1.2", "author": "Community for NL Design System", - "sideEffects": false, "type": "module", "exports": { ".": {