Pablo-WMDE created this task. Pablo-WMDE added projects: User-Pablo-WMDE, Wikidata Design System. Restricted Application added a subscriber: Aklapper. Restricted Application added a project: Wikidata.
TASK DESCRIPTION Tree shaking <https://webpack.js.org/guides/tree-shaking/> describes webpack's ability to remove unused dependencies when creating build results (partially) based on other packages. This makes for a smaller bundle to ship to clients and thus improves performance and user satisfaction. In order for tree shaking to work in our applications, the libraries used need to follow a few rules. Namely, they should not have side effects they don't declare so that that the build tool can optimize them with confidence. Wikit's vue components library is such a library. **AC** - webpack's definition of sideeffects is understood <https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free> (incl. the topic of CSS) - wikit's vue components has its `sideEffects` property (in the `package.json`) configured to allow using applications to apply tree shaking **Info** - We already played with this in https://gerrit.wikimedia.org/r/598781 & https://gerrit.wikimedia.org/r/598808 (for the then-trending vuejs-components lib) but ran into challenges TASK DETAIL https://phabricator.wikimedia.org/T268760 WORKBOARD https://phabricator.wikimedia.org/project/board/5083/ EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Pablo-WMDE Cc: Aklapper, Pablo-WMDE, Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Volker_E, Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs