import InfiniteLoading from './components/InfiniteLoading.vue';

export default InfiniteLoading;

if (typeof window !== 'undefined' && window.Vue) {
  window.Vue.component('infinite-loading', InfiniteLoading);
}

@@ -1,8 +1,39 @@
+import config from './config';%0A
 import I
@@ -93,22 +93,491 @@
 ';%0A%0A
-export default
+function syncModeFromVue(Vue) %7B%0A  config.mode = Vue.config.productionTip ? 'development' : 'production';%0A%7D%0A%0AObject.defineProperty(InfiniteLoading, 'install', %7B%0A  configurable: false,%0A  enumerable: false,%0A  value(Vue, options) %7B%0A    // override default props%0A    Object.assign(config.props, options && options.props);%0A%0A    // override default system settings%0A    Object.assign(config.system, options && options.system);%0A%0A    // register component%0A    Vue.component('infinite-loading',
  Inf
@@ -588,19 +588,143 @@
 eLoading
+)
 ;%0A%0A
+    syncModeFromVue(Vue);%0A  %7D,%0A%7D);%0A%0A// register component automatically if there has global Vue%0A/* istanbul ignore else */%0A
 if (type
@@ -827,10 +827,74 @@
 ading);%0A
-%7D
+  syncModeFromVue(window.Vue);%0A%7D%0A%0Aexport default InfiniteLoading;
 %0A

support configure global config through the Vue plugin API