MCPcopy Create free account
hub / github.com/Botloader/botloader / compile_typescript

Function compile_typescript

components/tscompiler/src/compiler.rs:12–14  ·  view source on GitHub ↗
(input: &str, filename: String)

Source from the content-addressed store, hash-verified

10use swc_ecmascript::parser::{Syntax, TsSyntax};
11
12pub fn compile_typescript(input: &str, filename: String) -> Result<CompiledItem, String> {
13 compile_typescript_inner(input, filename)
14}
15
16fn compile_typescript_inner(input: &str, filename: String) -> Result<CompiledItem, String> {
17 swc_common::GLOBALS.set(&Default::default(), || {

Callers 3

compileFunction · 0.85
compile_folderFunction · 0.85
compile_add_scriptMethod · 0.85

Calls 1

compile_typescript_innerFunction · 0.85

Tested by

no test coverage detected