aboutsummaryrefslogtreecommitdiff
path: root/node_modules/vue/src/core/instance/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/vue/src/core/instance/index.js')
-rw-r--r--node_modules/vue/src/core/instance/index.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/node_modules/vue/src/core/instance/index.js b/node_modules/vue/src/core/instance/index.js
new file mode 100644
index 00000000..8a440231
--- /dev/null
+++ b/node_modules/vue/src/core/instance/index.js
@@ -0,0 +1,23 @@
+import { initMixin } from './init'
+import { stateMixin } from './state'
+import { renderMixin } from './render'
+import { eventsMixin } from './events'
+import { lifecycleMixin } from './lifecycle'
+import { warn } from '../util/index'
+
+function Vue (options) {
+ if (process.env.NODE_ENV !== 'production' &&
+ !(this instanceof Vue)
+ ) {
+ warn('Vue is a constructor and should be called with the `new` keyword')
+ }
+ this._init(options)
+}
+
+initMixin(Vue)
+stateMixin(Vue)
+eventsMixin(Vue)
+lifecycleMixin(Vue)
+renderMixin(Vue)
+
+export default Vue