tsparserwasm

package
v1.58.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2026 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompileInput

type CompileInput struct {
	Host HostInfo

	// The cargo 'target' directory to use for compiled outputs.
	CargoTargetDir FSPath

	// True if it should be built with `--release`.
	ReleaseBuild bool

	// Version string to embed in the binary.
	Version string
}

type CompileOutput

type CompileOutput struct {
	// Path to the pkg/ directory containing the wasm-pack output.
	PkgDir FSPath
}

func Compile

func Compile(ctx context.Context, in CompileInput) (*CompileOutput, error)

Compile runs wasm-pack to build the tsparser-wasm crate.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址