chore(vue-app): suppress deprecated warning for classic vuex in prod (#5137)

This commit is contained in:
Shingo Sato 2019-03-02 00:49:22 +09:00 committed by Pooya Parsa
parent 83db959506
commit f39205a796

View File

@ -14,9 +14,10 @@ void (function updateModules() {
<% return true }}) %>
// If store is an exported method = classic mode (deprecated)
<% if (isDev) { %>
if (typeof store === 'function') {
return log.warn('Classic mode for store/ is deprecated and will be removed in Nuxt 3.')
}
}<% } %>
// Enforce store modules
store.modules = store.modules || {}