UNPKG

549 BJavaScriptView Raw
1import { initMixin } from './init'
2import { stateMixin } from './state'
3import { renderMixin } from './render'
4import { eventsMixin } from './events'
5import { lifecycleMixin } from './lifecycle'
6import { warn } from '../util/index'
7
8function Vue (options) {
9 if (process.env.NODE_ENV !== 'production' &&
10 !(this instanceof Vue)
11 ) {
12 warn('Vue is a constructor and should be called with the `new` keyword')
13 }
14 this._init(options)
15}
16
17initMixin(Vue)
18stateMixin(Vue)
19eventsMixin(Vue)
20lifecycleMixin(Vue)
21renderMixin(Vue)
22
23export default Vue