Help us shape the future of Go! Take the 2026 Go Developer Survey

transform

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JavaScript

func JavaScript(jsCode string, option api.TransformOptions) (string, error)

JavaScript transform the javascript code

func JavaScriptWithSourceMap

func JavaScriptWithSourceMap(jsCode string, option api.TransformOptions) ([]byte, []byte, error)

JavaScriptWithSourceMap transform the javascript code with source map

func MinifyCSS

func MinifyCSS(cssCode string) (string, error)

MinifyCSS minify the css code

func MinifyJS

func MinifyJS(jsCode string, target ...api.Target) (string, error)

MinifyJS minify the javascript code

func TypeScript

func TypeScript(tsCode string, option api.TransformOptions) (string, error)

TypeScript transform the typescript code to javascript code

func TypeScriptWithSourceMap

func TypeScriptWithSourceMap(tsCode string, option api.TransformOptions) ([]byte, []byte, error)

TypeScriptWithSourceMap transform the typescript code with source map

Types

This section is empty.

Jump to

Keyboard shortcuts

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