Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Fast Refresh support #3449

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmd/esbuild/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ var helpText = func(colors logger.Colors) string {
--preserve-symlinks Disable symlink resolution for module lookup
--public-path=... Set the base URL for the "file" loader
--pure:N Mark the name N as a pure function for tree shaking
--react-refresh Enable React Fast Refresh transformation
--reserve-props=... Do not mangle these properties
--resolve-extensions=... A comma-separated list of implicit extensions
(default ".tsx,.ts,.jsx,.js,.css,.json")
Expand Down
11 changes: 6 additions & 5 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,11 +434,12 @@ type Options struct {
ChunkPathTemplate []PathTemplate
AssetPathTemplate []PathTemplate

Plugins []Plugin
SourceRoot string
Stdin *StdinInfo
JSX JSXOptions
LineLimit int
Plugins []Plugin
SourceRoot string
Stdin *StdinInfo
JSX JSXOptions
ReactRefresh bool
LineLimit int

CSSPrefixData map[css_ast.D]compat.CSSPrefix
UnsupportedJSFeatures compat.JSFeature
Expand Down
Loading