7c71c953a42b15cc162c2a8922c7b2d1da13b00cd2c0aaf1b55aad435abe53a9550fe5c1060476d19d705da6637a82311a88c0dec6c9027e81ffdb751a8fbb 549 B

1234567891011121314151617181920212223
  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. function Vue (options) {
  8. if (process.env.NODE_ENV !== 'production' &&
  9. !(this instanceof Vue)
  10. ) {
  11. warn('Vue is a constructor and should be called with the `new` keyword')
  12. }
  13. this._init(options)
  14. }
  15. initMixin(Vue)
  16. stateMixin(Vue)
  17. eventsMixin(Vue)
  18. lifecycleMixin(Vue)
  19. renderMixin(Vue)
  20. export default Vue