initUse() — vue Function Reference
Architecture documentation for the initUse() function in use.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 1b92c3a3_73b6_48be_4ce3_36ba578fb4ed["initUse()"] fbf3d1a4_d56c_d478_1573_241df479fc52["use.ts"] 1b92c3a3_73b6_48be_4ce3_36ba578fb4ed -->|defined in| fbf3d1a4_d56c_d478_1573_241df479fc52 157a933a_63b7_ebeb_71f9_e11bccd3097b["initGlobalAPI()"] 157a933a_63b7_ebeb_71f9_e11bccd3097b -->|calls| 1b92c3a3_73b6_48be_4ce3_36ba578fb4ed style 1b92c3a3_73b6_48be_4ce3_36ba578fb4ed 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
Defined In
Called By
Source
Frequently Asked Questions
What does initUse() do?
initUse() is a function in the vue codebase, defined in src/core/global-api/use.ts.
Where is initUse() defined?
initUse() is defined in src/core/global-api/use.ts at line 4.
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