Component.js — svelte Source File
Architecture documentation for Component.js, a javascript file in the svelte codebase. 2 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR 1ca8e481_332d_8b50_093e_c29d0eb391b1["Component.js"] be3a40b1_7e88_8a0c_e231_56c97bd7899f["component.js"] 1ca8e481_332d_8b50_093e_c29d0eb391b1 --> be3a40b1_7e88_8a0c_e231_56c97bd7899f 2b6a1e4d_7060_eb43_d939_71517fa01ad9["build_component"] 1ca8e481_332d_8b50_093e_c29d0eb391b1 --> 2b6a1e4d_7060_eb43_d939_71517fa01ad9 7665e008_f37d_b860_a594_f2539a66af4e["transform-client.js"] 7665e008_f37d_b860_a594_f2539a66af4e --> 1ca8e481_332d_8b50_093e_c29d0eb391b1 style 1ca8e481_332d_8b50_093e_c29d0eb391b1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
/** @import { AST } from '#compiler' */
/** @import { ComponentContext } from '../types' */
import { build_component } from './shared/component.js';
/**
* @param {AST.Component} node
* @param {ComponentContext} context
*/
export function Component(node, context) {
const component = build_component(node, node.name, node.name_loc, context);
context.state.init.push(component);
}
Domain
Subdomains
Functions
Dependencies
Source
Frequently Asked Questions
What does Component.js do?
Component.js is a source file in the svelte codebase, written in javascript. It belongs to the Compiler domain, Transformer subdomain.
What functions are defined in Component.js?
Component.js defines 1 function(s): Component.
What does Component.js depend on?
Component.js imports 2 module(s): build_component, component.js.
What files import Component.js?
Component.js is imported by 1 file(s): transform-client.js.
Where is Component.js in the architecture?
Component.js is located at packages/svelte/src/compiler/phases/3-transform/client/visitors/Component.js (domain: Compiler, subdomain: Transformer, directory: packages/svelte/src/compiler/phases/3-transform/client/visitors).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free