mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
chore(vue-app): suppress deprecated warning for classic vuex in prod (#5137)
This commit is contained in:
parent
83db959506
commit
f39205a796
@ -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 || {}
|
||||
|
Loading…
Reference in New Issue
Block a user