initUse() — vue Function Reference
Architecture documentation for the initUse() function in use.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD e2cdac5e_5c74_d199_56d0_63d86dfb6ee1["initUse()"] 569ea312_4d3b_007e_7375_5022a3a78a2b["initGlobalAPI()"] 569ea312_4d3b_007e_7375_5022a3a78a2b -->|calls| e2cdac5e_5c74_d199_56d0_63d86dfb6ee1 style e2cdac5e_5c74_d199_56d0_63d86dfb6ee1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/core/global-api/use.ts lines 4–23
export function initUse(Vue: GlobalAPI) {
Vue.use = function (plugin: Function | any) {
const installedPlugins =
this._installedPlugins || (this._installedPlugins = [])
if (installedPlugins.indexOf(plugin) > -1) {
return this
}
// additional parameters
const args = toArray(arguments, 1)
args.unshift(this)
if (isFunction(plugin.install)) {
plugin.install.apply(plugin, args)
} else if (isFunction(plugin)) {
plugin.apply(null, args)
}
installedPlugins.push(plugin)
return this
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does initUse() do?
initUse() is a function in the vue codebase.
What calls initUse()?
initUse() is called by 1 function(s): initGlobalAPI.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free