index.ts — vue Source File
Architecture documentation for index.ts, a typescript file in the vue codebase. 9 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR b5f71c2e_6baa_62e4_4167_0496c4d6e540["index.ts"] 101d3d34_ac07_228f_62b9_5d5ac4a0ea2e["index.ts"] b5f71c2e_6baa_62e4_4167_0496c4d6e540 --> 101d3d34_ac07_228f_62b9_5d5ac4a0ea2e 19a26691_f7c4_e2d6_e9ed_59c6aff144df["parse"] b5f71c2e_6baa_62e4_4167_0496c4d6e540 --> 19a26691_f7c4_e2d6_e9ed_59c6aff144df c66d4aaa_9814_c96c_1d3f_ef17ed6ab384["optimizer.ts"] b5f71c2e_6baa_62e4_4167_0496c4d6e540 --> c66d4aaa_9814_c96c_1d3f_ef17ed6ab384 53eb02a0_e5cc_b010_2d4d_1ad77bf5eb9c["optimize"] b5f71c2e_6baa_62e4_4167_0496c4d6e540 --> 53eb02a0_e5cc_b010_2d4d_1ad77bf5eb9c 6a18399e_553e_fef8_6a39_746f79f94bd2["index.ts"] b5f71c2e_6baa_62e4_4167_0496c4d6e540 --> 6a18399e_553e_fef8_6a39_746f79f94bd2 e748fb47_6716_51f2_1c20_197a7392a425["generate"] b5f71c2e_6baa_62e4_4167_0496c4d6e540 --> e748fb47_6716_51f2_1c20_197a7392a425 ff1da07c_8f38_b75f_ad5a_42883a44a3df["create-compiler.ts"] b5f71c2e_6baa_62e4_4167_0496c4d6e540 --> ff1da07c_8f38_b75f_ad5a_42883a44a3df 97855b39_317e_b246_a520_910b41a8b140["createCompilerCreator"] b5f71c2e_6baa_62e4_4167_0496c4d6e540 --> 97855b39_317e_b246_a520_910b41a8b140 a80b8e3b_d720_9146_3bf6_594d4ee5dd77["compiler"] b5f71c2e_6baa_62e4_4167_0496c4d6e540 --> a80b8e3b_d720_9146_3bf6_594d4ee5dd77 style b5f71c2e_6baa_62e4_4167_0496c4d6e540 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { parse } from './parser/index'
import { optimize } from './optimizer'
import { generate } from './codegen/index'
import { createCompilerCreator } from './create-compiler'
import { CompilerOptions, CompiledResult } from 'types/compiler'
// `createCompilerCreator` allows creating compilers that use alternative
// parser/optimizer/codegen, e.g the SSR optimizing compiler.
// Here we just export a default compiler using the default parts.
export const createCompiler = createCompilerCreator(function baseCompile(
template: string,
options: CompilerOptions
): CompiledResult {
const ast = parse(template.trim(), options)
if (options.optimize !== false) {
optimize(ast, options)
}
const code = generate(ast, options)
return {
ast,
render: code.render,
staticRenderFns: code.staticRenderFns
}
})
Domain
Subdomains
Functions
Dependencies
Source
Frequently Asked Questions
What does index.ts do?
index.ts is a source file in the vue codebase, written in typescript. It belongs to the VueCore domain, VDom subdomain.
What functions are defined in index.ts?
index.ts defines 1 function(s): createCompiler.
What does index.ts depend on?
index.ts imports 9 module(s): compiler, create-compiler.ts, createCompilerCreator, generate, index.ts, index.ts, optimize, optimizer.ts, and 1 more.
Where is index.ts in the architecture?
index.ts is located at src/compiler/index.ts (domain: VueCore, subdomain: VDom, directory: src/compiler).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free