From 4289f1ba5a87b1b18998f2b434129be591f9da89 Mon Sep 17 00:00:00 2001 From: Chris Holt Date: Fri, 4 Aug 2023 15:08:38 -0700 Subject: [PATCH] enumerate files which have side effects --- ...-9115f389-41b2-4cf3-bd7c-122dfcfbfef0.json | 7 +++++ packages/web-components/package.json | 30 ++++++++++++++++++- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 change/@fluentui-web-components-9115f389-41b2-4cf3-bd7c-122dfcfbfef0.json diff --git a/change/@fluentui-web-components-9115f389-41b2-4cf3-bd7c-122dfcfbfef0.json b/change/@fluentui-web-components-9115f389-41b2-4cf3-bd7c-122dfcfbfef0.json new file mode 100644 index 0000000000000..9a02504f08923 --- /dev/null +++ b/change/@fluentui-web-components-9115f389-41b2-4cf3-bd7c-122dfcfbfef0.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "fix(web-components): enumerate side-effects for package export paths", + "packageName": "@fluentui/web-components", + "email": "chhol@microsoft.com", + "dependentChangeType": "patch" +} diff --git a/packages/web-components/package.json b/packages/web-components/package.json index b38051ebb0184..ca148103ce2a5 100644 --- a/packages/web-components/package.json +++ b/packages/web-components/package.json @@ -1,7 +1,6 @@ { "name": "@fluentui/web-components", "description": "A library of Fluent Web Components", - "sideEffects": false, "version": "3.0.0-alpha.27", "author": { "name": "Microsoft", @@ -133,6 +132,35 @@ "default": "./dist/esm/toggle-button/define.js" } }, + "sideEffects": [ + "./dist/esm/accordion/define.js", + "./dist/esm/accordion-item/define.js", + "./dist/esm/anchor-button/define.js", + "./dist/esm/avatar/define.js", + "./dist/esm/badge/define.js", + "./dist/esm/button/define.js", + "./dist/esm/checkbox/define.js", + "./dist/esm/compound-button/define.js", + "./dist/esm/counter-badge/define.js", + "./dist/esm/divider/define.js", + "./dist/esm/image/define.js", + "./dist/esm/label/define.js", + "./dist/esm/menu-list/define.js", + "./dist/esm/menu-button/define.js", + "./dist/esm/menu-item/define.js", + "./dist/esm/progress-bar/define.js", + "./dist/esm/radio/define.js", + "./dist/esm/radio-group/define.js", + "./dist/esm/slider/define.js", + "./dist/esm/spinner/define.js", + "./dist/esm/switch/define.js", + "./dist/esm/tab/define.js", + "./dist/esm/tabs/define.js", + "./dist/esm/tab-panel/define.js", + "./dist/esm/text/define.js", + "./dist/esm/text-input/define.js", + "./dist/esm/toggle-button/define.js" + ], "scripts": { "tsc": "tsc", "api-extractor": "api-extractor",