Created
May 13, 2019 03:07
-
-
Save tdondich/d7bc0c698b2bd90514f0ef6a252b8fab to your computer and use it in GitHub Desktop.
Vue.JS Starting File
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment