es

package
v0.0.0-...-e78e94a Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DOM

func DOM(flag *Flag) esbuild.BuildOptions

DOM creates a browser preset

func FS

func FS(fsys fs.FS, namespace string) esbuild.Plugin

func SSR

func SSR(flag *Flag) esbuild.BuildOptions

SSR creates a server-rendered preset

func SvelteLoader

func SvelteLoader() esbuild.Plugin

定义 Svelte Loader 插件

Types

type Builder

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

func New

func New() *Builder

func (*Builder) Bundle

func (b *Builder) Bundle(options esbuild.BuildOptions, entries ...string) ([]esbuild.OutputFile, error)

Bundle a group of files

func (*Builder) Serve

func (b *Builder) Serve(options esbuild.BuildOptions, entries ...string) (*esbuild.OutputFile, error)

Serve a single file

type Flag

type Flag struct {
	Minify bool
	Embed  bool
}

Jump to

Keyboard shortcuts

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