initUse() — vue Function Reference
Architecture documentation for the initUse() function in use.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 7fe2dc3d_81de_32c3_a72f_6cfe53926acd["initUse()"] dc062a3a_6b69_b0c9_3501_30d73b720622["use.ts"] 7fe2dc3d_81de_32c3_a72f_6cfe53926acd -->|defined in| dc062a3a_6b69_b0c9_3501_30d73b720622 ee699f75_f5be_8f7a_91c2_18232c62b421["initGlobalAPI()"] ee699f75_f5be_8f7a_91c2_18232c62b421 -->|calls| 7fe2dc3d_81de_32c3_a72f_6cfe53926acd style 7fe2dc3d_81de_32c3_a72f_6cfe53926acd 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