Having mattermost-webapp as a dependency makes it so we check out the whole repo when we npm install. This makes the install take longer and has caused issues in some environments. The version of mattermost-redux generally contains everything plugins need that is currently available in mattermost-webapp/pacckages/mattermost-redux. Until we have a more dedicated package for plugins, I think importing mattermost-redux works well.
Note that changing the import in the starter template won't break any plugins that are using the mattermost-webapp dependency.
Summary
Having
mattermost-webapp
as a dependency makes it so we check out the whole repo when wenpm install
. This makes the install take longer and has caused issues in some environments. The version ofmattermost-redux
generally contains everything plugins need that is currently available inmattermost-webapp/pacckages/mattermost-redux
. Until we have a more dedicated package for plugins, I think importingmattermost-redux
works well.Note that changing the import in the starter template won't break any plugins that are using the
mattermost-webapp
dependency.This is coming up due to a developer running into issues with the
mattermost-webapp
dependency here https://community.mattermost.com/core/pl/kaa1swasrfbgffbcmc571mnzqh