Skip to content

Commit

Permalink
chore(vue-app): suppress deprecated warning for classic vuex in prod (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sugarshin authored and pi0 committed Mar 1, 2019
1 parent 83db959 commit f39205a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vue-app/template/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 || {}
Expand Down

0 comments on commit f39205a

Please sign in to comment.