1
0
Эх сурвалжийг харах

refactor: drop auto install feature

Vue 3 requires to create a new app anyway.
Kia Ishii 5 жил өмнө
parent
commit
9d0abf8b57
1 өөрчлөгдсөн 0 нэмэгдсэн , 11 устгасан
  1. 0 11
      src/store.js

+ 0 - 11
src/store.js

@@ -10,18 +10,7 @@ export function createStore (options) {
 
 export class Store {
   constructor (options = {}) {
-    // TODO: Bring back this one if needed.
-    //
-    // Auto install if it is not done yet and `window` has `Vue`.
-    // To allow users to avoid auto-installation in some cases,
-    // this code should be placed here. See #731
-    // if (!Vue && typeof window !== 'undefined' && window.Vue) {
-    //   install(window.Vue)
-    // }
-
     if (process.env.NODE_ENV !== 'production') {
-      // TODO: Maybe we can remove this depending on the new implementation.
-      // assert(Vue, `must call Vue.use(Vuex) before creating a store instance.`)
       assert(typeof Promise !== 'undefined', `vuex requires a Promise polyfill in this browser.`)
       assert(this instanceof Store, `store must be called with the new operator.`)
     }