config.go
13 lines1
2
3
4
5
6
7
8
9
10
11
12
13
// Package esbuild provides a bundler for frontend components using esbuild's Go API.
package esbuild
// Config configures the esbuild bundler for frontend components.
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
}