diff --git a/.nx/version-plans/version-plan-1789504367525.md b/.nx/version-plans/version-plan-1789504367525.md new file mode 100644 index 00000000000..04a9461edb8 --- /dev/null +++ b/.nx/version-plans/version-plan-1789504367525.md @@ -0,0 +1,6 @@ +--- +gamut-illustrations: patch +gamut: patch +--- + +narrow sideEffects globs so unused components (e.g. Video) tree-shake out of consumer bundles diff --git a/packages/gamut-illustrations/package.json b/packages/gamut-illustrations/package.json index 5f57e87cc4a..7a713d8e136 100644 --- a/packages/gamut-illustrations/package.json +++ b/packages/gamut-illustrations/package.json @@ -28,8 +28,5 @@ "scripts": { "build": "nx build @codecademy/gamut-illustrations" }, - "sideEffects": [ - "dist/**/[A-Z]**/[A-Z]*.js", - "dist/**/[A-Z]**/index.js" - ] + "sideEffects": false } diff --git a/packages/gamut/package.json b/packages/gamut/package.json index 63a4e70b185..1c3232107a9 100644 --- a/packages/gamut/package.json +++ b/packages/gamut/package.json @@ -66,8 +66,6 @@ }, "sideEffects": [ "**/*.css", - "**/*.scss", - "dist/**/[A-Z]**/[A-Z]*.js", - "dist/**/[A-Z]**/index.js" + "**/*.scss" ] }