1 | import { initMixin } from './init'
|
2 | import { stateMixin } from './state'
|
3 | import { renderMixin } from './render'
|
4 | import { eventsMixin } from './events'
|
5 | import { lifecycleMixin } from './lifecycle'
|
6 | import { warn } from '../util/index'
|
7 |
|
8 | function 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 |
|
17 | initMixin(Vue)
|
18 | stateMixin(Vue)
|
19 | eventsMixin(Vue)
|
20 | lifecycleMixin(Vue)
|
21 | renderMixin(Vue)
|
22 |
|
23 | export default Vue
|