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
  366c3f51_eccf_eade_bd16_52fa8c0fe573["genRuntimeEmits()"]
  c9346cac_54e3_f6ca_68a7_03c6e82c9609["compileScript.ts"]
  366c3f51_eccf_eade_bd16_52fa8c0fe573 -->|defined in| c9346cac_54e3_f6ca_68a7_03c6e82c9609
  4dff3da5_c3f4_4303_7989_1d16ed3f091d["compileScript()"]
  4dff3da5_c3f4_4303_7989_1d16ed3f091d -->|calls| 366c3f51_eccf_eade_bd16_52fa8c0fe573
  style 366c3f51_eccf_eade_bd16_52fa8c0fe573 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, defined in packages/compiler-sfc/src/compileScript.ts.
Where is genRuntimeEmits() defined?
genRuntimeEmits() is defined in packages/compiler-sfc/src/compileScript.ts at line 1608.
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