Documentation
¶
Overview ¶
Package esbuild provides a bundler for frontend components using esbuild's Go API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bundler ¶
type Bundler struct {
// contains filtered or unexported fields
}
Bundler compiles frontend components using esbuild.
func NewBundler ¶
NewBundler creates a bundler with the given configuration.
type Config ¶
type Config struct {
// Entry is the path to the entry point file (e.g., "components/index.ts")
Entry string
// Include is the list of directories to watch for changes (for HMR).
// These directories are also available for imports.
// node_modules is always included automatically.
Include []string
}
Config configures the esbuild bundler for frontend components.
Click to show internal directories.
Click to hide internal directories.