Skip to content

Commit

Permalink
feat: add sideeffects; part 3 (#1491)
Browse files Browse the repository at this point in the history
* feat: add sideeffects;

* feat: add side effects;

* fix: md;
  • Loading branch information
denisx authored and NikitaRodyukov committed Dec 25, 2024
1 parent 27a92af commit f8c62ca
Show file tree
Hide file tree
Showing 22 changed files with 46 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .changeset/nervous-poets-brush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
'@alfalab/core-components-code-input': patch
'@alfalab/core-components-collapse': patch
'@alfalab/core-components-confirmation': patch
'@alfalab/core-components-date-input': patch
'@alfalab/core-components-filter-tag': patch
'@alfalab/core-components-gap': patch
'@alfalab/core-components-grid': patch
'@alfalab/core-components-link': patch
'@alfalab/core-components-list': patch
'@alfalab/core-components-modal': patch
'@alfalab/core-components-slider': patch
'@alfalab/core-components-space': patch
'@alfalab/core-components-spinner': patch
'@alfalab/core-components-stack': patch
'@alfalab/core-components-status': patch
'@alfalab/core-components-steps': patch
'@alfalab/core-components-tabs': patch
'@alfalab/core-components-tag': patch
'@alfalab/core-components-textarea': patch
'@alfalab/core-components-tooltip': patch
'@alfalab/core-components-underlay': patch
---

- Добавлено sideEffects: false в package.json. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 3.
1 change: 1 addition & 0 deletions packages/code-input/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"access": "public",
"directory": "dist"
},
"sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
Expand Down
1 change: 1 addition & 0 deletions packages/collapse/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"access": "public",
"directory": "dist"
},
"sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
Expand Down
1 change: 1 addition & 0 deletions packages/confirmation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"access": "public",
"directory": "dist"
},
"sideEffects": false,
"dependencies": {
"@alfalab/core-components-button": "^11.11.0",
"@alfalab/core-components-code-input": "^3.9.2",
Expand Down
1 change: 1 addition & 0 deletions packages/date-input/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"access": "public",
"directory": "dist"
},
"sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
Expand Down
1 change: 1 addition & 0 deletions packages/filter-tag/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"access": "public",
"directory": "dist"
},
"sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
Expand Down
1 change: 1 addition & 0 deletions packages/gap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"access": "public",
"directory": "dist"
},
"sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
Expand Down
1 change: 1 addition & 0 deletions packages/grid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"access": "public",
"directory": "dist"
},
"sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
Expand Down
1 change: 1 addition & 0 deletions packages/link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"access": "public",
"directory": "dist"
},
"sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
Expand Down
1 change: 1 addition & 0 deletions packages/list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"access": "public",
"directory": "dist"
},
"sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
Expand Down
1 change: 1 addition & 0 deletions packages/modal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"access": "public",
"directory": "dist"
},
"sideEffects": false,
"dependencies": {
"@alfalab/core-components-base-modal": "^5.8.5",
"@alfalab/core-components-navigation-bar-private": "^0.5.4",
Expand Down
1 change: 1 addition & 0 deletions packages/slider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"access": "public",
"directory": "dist"
},
"sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
Expand Down
1 change: 1 addition & 0 deletions packages/space/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"access": "public",
"directory": "dist"
},
"sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
Expand Down
1 change: 1 addition & 0 deletions packages/spinner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"access": "public",
"directory": "dist"
},
"sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
Expand Down
1 change: 1 addition & 0 deletions packages/stack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"access": "public",
"directory": "dist"
},
"sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
Expand Down
1 change: 1 addition & 0 deletions packages/status/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"access": "public",
"directory": "dist"
},
"sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
Expand Down
1 change: 1 addition & 0 deletions packages/steps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"access": "public",
"directory": "dist"
},
"sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
Expand Down
1 change: 1 addition & 0 deletions packages/tabs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"devDependencies": {
"@types/lodash": "^4.17.13"
},
"sideEffects": false,
"dependencies": {
"@alfalab/core-components-keyboard-focusable": "^4.1.0",
"@alfalab/core-components-tag": "^8.6.2",
Expand Down
1 change: 1 addition & 0 deletions packages/tag/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"access": "public",
"directory": "dist"
},
"sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
Expand Down
1 change: 1 addition & 0 deletions packages/textarea/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"access": "public",
"directory": "dist"
},
"sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
Expand Down
1 change: 1 addition & 0 deletions packages/tooltip/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"access": "public",
"directory": "dist"
},
"sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
Expand Down
1 change: 1 addition & 0 deletions packages/underlay/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"access": "public",
"directory": "dist"
},
"sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
Expand Down

0 comments on commit f8c62ca

Please sign in to comment.