Skip to content

Commit 0c9994f

Browse files
committed
auto install in dist
1 parent 8a0118a commit 0c9994f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,11 @@ function install (_Vue) {
240240
override(Vue)
241241
}
242242

243+
// auto install in dist mode
244+
if (typeof window !== 'undefined' && window.Vue) {
245+
install(window.Vue)
246+
}
247+
243248
function createLogger () {
244249
console.warn(
245250
'[vuex] Vuex.createLogger has been deprecated.' +

0 commit comments

Comments
 (0)