Home / Function/ genRuntimeEmits() — vue Function Reference

genRuntimeEmits() — vue Function Reference

Architecture documentation for the genRuntimeEmits() function in compileScript.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  5d80f0a5_d516_4218_d59f_6c349aa44a14["genRuntimeEmits()"]
  16b5f9ed_1e09_eff8_5797_7cb90fc86d37["compileScript()"]
  16b5f9ed_1e09_eff8_5797_7cb90fc86d37 -->|calls| 5d80f0a5_d516_4218_d59f_6c349aa44a14
  style 5d80f0a5_d516_4218_d59f_6c349aa44a14 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/compiler-sfc/src/compileScript.ts lines 1608–1614

function genRuntimeEmits(emits: Set<string>) {
  return emits.size
    ? `\n  emits: [${Array.from(emits)
        .map(p => JSON.stringify(p))
        .join(', ')}],`
    : ``
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does genRuntimeEmits() do?
genRuntimeEmits() is a function in the vue codebase.
What calls genRuntimeEmits()?
genRuntimeEmits() is called by 1 function(s): compileScript.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free