Documentation
¶
Index ¶
- func JavaScript(jsCode string, option api.TransformOptions) (string, error)
- func JavaScriptWithSourceMap(jsCode string, option api.TransformOptions) ([]byte, []byte, error)
- func MinifyCSS(cssCode string) (string, error)
- func MinifyJS(jsCode string, target ...api.Target) (string, error)
- func TypeScript(tsCode string, option api.TransformOptions) (string, error)
- func TypeScriptWithSourceMap(tsCode string, option api.TransformOptions) ([]byte, []byte, error)
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 ¶
JavaScriptWithSourceMap transform the javascript code with source map
func TypeScript ¶
func TypeScript(tsCode string, option api.TransformOptions) (string, error)
TypeScript transform the typescript code to javascript code
func TypeScriptWithSourceMap ¶
TypeScriptWithSourceMap transform the typescript code with source map
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.