Skip to content

Commit 6e0dc53

Browse files
authored
Merge pull request #5123 from DivanteLtd/doc-no-depr-actions
Info about possibility of removing depracatedActions in doc
2 parents 2ddac26 + 264e6f4 commit 6e0dc53

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

docs/guide/cookbook/checklist.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,4 +892,15 @@ This [sample theme](https://github.com/yireo-training/vsf-yireo-theme) can help
892892
<br />
893893
894894
## 21. Optimized Webpack configuration for Vue Storefront 1 development
895-
The default Webpack configuration of Vue Storefront 1 allows for fully testing all features. However, because of various reasons, this leads to a slow transpilation time and therefore a bad developer experience. This [repository](https://github.com/yireo-training/vsf1-local-webpack) contains a separate Webpack
895+
The default Webpack configuration of Vue Storefront 1 allows for fully testing all features. However, because of various reasons, this leads to a slow transpilation time and therefore a bad developer experience. This [repository](https://github.com/yireo-training/vsf1-local-webpack) contains a separate Webpack
896+
897+
## 22. Get rid of depracatedActions in VSF 1.12+
898+
We do not want to make **breaking changes** (only in special situation). That's why we left *depracatedActions* in product's vuex module. If you started your project in 1.12 you can be almost 100% sure that you can get rid of this file which will result in **31.75KB** less app.js bundle! In simple words, you can do that if your app does not use any of *depracatedActions*.
899+
900+
To do that:
901+
1. Remove `core/modules/catalog/store/product/deprecatedActions.ts`
902+
2. In `core/modules/catalog/store/product/actions.ts`, remove 317-318 lines:
903+
```ts
904+
/** Below actions are not used from 1.12 and can be removed to reduce bundle */
905+
...require('./deprecatedActions').default
906+
```

0 commit comments

Comments
 (0)