transformer

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Babel

type Babel struct {
	// contains filtered or unexported fields
}

func New

func New(r *goja.Runtime) (*Babel, error)

func (*Babel) Compile

func (b *Babel) Compile(name, in string) (*goja.Program, error)

func (*Babel) Transform

func (b *Babel) Transform(in string) (string, error)

Jump to

Keyboard shortcuts

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