evanw / evanw/esbuild

[feature] serve to allow pushing custom events to /esbuild SSE

Open
#2,997 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
40.1k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

Serve is almost pefect for me.

I have a simple function that uses glob to sync static assets into build folder.

I can run both server and my watcher so esbuild handles bundling, and my watcher syncs static files.

After I copy changed static asset, I could call some kind of `ctx.notify()` that would be pushed via `/esbuild` SSE, I would not need `live-server` anymore.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the serve entry point and the /esbuild SSE endpoint mentioned in the issue. Determine how a custom notification event should be represented and delivered; done means an external watcher can trigger it and connected SSE clients receive it without live-server.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
build-system, devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.